- Saved searches
- Use saved searches to filter your results more quickly
- Installation error #881
- Installation error #881
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Python pip install files with NotImplementedError or Syntax Error #11867
- Python pip install files with NotImplementedError or Syntax Error #11867
- Comments
- Environment data
- Expected behaviour
- Actual behaviour
- Steps to reproduce:
- Logs
- Unable to install logging module (Python)
- Related videos on Youtube
- sjplural
- Comments
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation error #881
Installation error #881
Comments
I am trying to install speechbrain in my computer, but I’m having problems with the installation even though I’m following the instructions. Any idea on how to solve it?
This is what I get when I try the last step ( pip install —editable . ):
Defaulting to user installation because normal site-packages is not writeable Obtaining file:///home/miguel/Desktop/languageIDKaldi2/speechbrain Installing build dependencies . error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/miguel/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qmx7nr7v/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel cwd: None Complete output (48 lines): Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/miguel/.local/lib/python3.6/site-packages/pip/__main__.py", line 29, in from pip._internal.cli.main import main as _main File "/home/miguel/.local/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 4, in import logging File "/home/miguel/.local/lib/python3.6/site-packages/logging/__init__.py", line 618 raise NotImplementedError, 'emit must be implemented '\ ^ SyntaxError: invalid syntax Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in import apport.fileutils File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 25, in from apport.packaging_impl import impl as packaging File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in from apt.package import Package File "/usr/lib/python3/dist-packages/apt/package.py", line 24, in import logging File "/home/miguel/.local/lib/python3.6/site-packages/logging/__init__.py", line 618 raise NotImplementedError, 'emit must be implemented '\ ^ SyntaxError: invalid syntax Original exception was: Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/miguel/.local/lib/python3.6/site-packages/pip/__main__.py", line 29, in from pip._internal.cli.main import main as _main File "/home/miguel/.local/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 4, in import logging File "/home/miguel/.local/lib/python3.6/site-packages/logging/__init__.py", line 618 raise NotImplementedError, 'emit must be implemented '\ ^ SyntaxError: invalid syntax ---------------------------------------- WARNING: Discarding file:///home/miguel/Desktop/languageIDKaldi2/speechbrain. Command errored out with exit status 1: /usr/bin/python3 /home/miguel/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qmx7nr7v/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output. ERROR: Command errored out with exit status 1: /usr/bin/python3 /home/miguel/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qmx7nr7v/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.
EDIT: Also, when I attempt to install speechbrain directly with PIP, I get another error:
ERROR: Could not find a version that satisfies the requirement speechbrain (from versions: none) ERROR: No matching distribution found for speechbrain
This one is particularly curious, since both pypi.org and your own github page explicitly indicate that it can be installed using pip. Suggestions?
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python pip install files with NotImplementedError or Syntax Error #11867
Python pip install files with NotImplementedError or Syntax Error #11867
Comments
Environment data
Version: 1.45.1 (user setup)
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:35.169Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
Expected behaviour
module installs with no errors
Actual behaviour
(.venv) python -m pip install logging
Collecting logging
Downloading
FULL DETAILS BELOW
File «C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\lib2to3\refactor.py», line 18, in
import logging
File «C:\Users\dhartman\AppData\Local\Temp\pip-install-42h96qgb\logging\logging_init_.py», line 618
raise NotImplementedError, ’emit must be implemented ‘
^
SyntaxError: invalid syntax
Command «python setup.py egg_info» failed with error code 1 in C:\Users\dhartman\AppData\Local\Temp\pip-install-42h96qgb\logging\
Steps to reproduce:
- Started with a new blank folder and opened code from that folder
- Created a simple hello.py (just print a message)
- This worked as expected
- Created a virtual environment using the following:
- Confirmed hello.py worked using the virtual env (activated and ran the code)
- Tired to install the logging module using the following which generated the errors noted above:
python -m pip install logging - Tried to run with no-cache-dir as well as I had seen somewhere that cached files can cause isssues.
python -m pip —no-cache-dir install logging
Logs
Output for Python in the Output panel ( View → Output , change the drop-down the upper-right of the Output panel to Python )
(.venv) PS C:\Users\dhartman\Documents\Python\python-test> python -m pip install logging Collecting logging Using cached https://files.pythonhosted.org/packages/93/4b/979db9e44be09f71e85c9c8cfc42f258adfb7d93ce01deed2788b2948919/logging-0.4.9.6.tar.gz Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info\logging.egg-info writing pip-egg-info\logging.egg-info\PKG-INFO writing dependency_links to pip-egg-info\logging.egg-info\dependency_links.txt writing top-level names to pip-egg-info\logging.egg-info\top_level.txt writing manifest file 'pip-egg-info\logging.egg-info\SOURCES.txt' Traceback (most recent call last): File "", line 1, in File "C:\Users\dhartman\AppData\Local\Temp\pip-install-g0m_gdx5\logging\setup.py", line 13, in packages = ["logging"], File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\command\egg_info.py", line 296, in run self.find_sources() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\command\egg_info.py", line 303, in find_sources mm.run() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\command\egg_info.py", line 534, in run self.add_defaults() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\command\egg_info.py", line 570, in add_defaults sdist.add_defaults(self) File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\distutils\command\sdist.py", line 226, in add_defaults self._add_defaults_python() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\command\sdist.py", line 127, in _add_defaults_python build_py = self.get_finalized_command('build_py') File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\distutils\cmd.py", line 298, in get_finalized_command cmd_obj = self.distribution.get_command_obj(command, create) File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 857, in get_command_obj klass = self.get_command_class(command) File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\dist.py", line 707, in get_command_class self.cmdclass[command] = cmdclass = ep.load() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\pkg_resources\__init__.py", line 2346, in load return self.resolve() File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\pkg_resources\__init__.py", line 2352, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\command\build_py.py", line 15, in from setuptools.lib2to3_ex import Mixin2to3 File "C:\Users\dhartman\Documents\Python\python-test\.venv\lib\site-packages\setuptools\lib2to3_ex.py", line 12, in from lib2to3.refactor import RefactoringTool, get_fixers_from_package File "C:\Users\dhartman\AppData\Local\Programs\Python\Python37\lib\lib2to3\refactor.py", line 18, in import logging File "C:\Users\dhartman\AppData\Local\Temp\pip-install-g0m_gdx5\logging\logging\__init__.py", line 618 raise NotImplementedError, 'emit must be implemented '\ ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\dhartman\AppData\Local\Temp\pip-install-g0m_gdx5\logging\
Not able to run python program due to install failures
I ended up starting completely
The text was updated successfully, but these errors were encountered:
Unable to install logging module (Python)
logging is part of the Python standard library, and has been since version 2.3. It’s available as soon as you install Python. You don’t need to pip install anything.
Related videos on Youtube
sjplural
Comments
I’m trying to install the logging module for Python 3.4. I’m using pip3 install logging. Both times I run into a SyntaxError at line 618 of the init method: «raise NotImplementedError, ’emit must be implemented ‘\». Someone posted the same question as me, and solved their problem by deleting an interfering third party library called logging: Logging module not working with Python3. But I have no such library already installed in my site-packages directory. Thanks!
none of the standard libraries get installed when using virtualenv for python3. So how would one install logging into a virtualenv?
@wesm of course they do. Python wouldn’t function without the stdlib. The files may not be copied into your virtualenv from the system location, but they’re still available for use.