I need to install pyOTDR but some issues are preventing me to do so.
As suggested in the webpage, I tried
pip install pyOTDR
but I get
Command errored out with exit status 1
This is the whole console log:
ERROR: Command errored out with exit status 1:
command: 'c:\users\campione\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\campione\\AppData\\Local\\Temp\\pip-install-fiabozry\\lazyxml\\setup.py'"'"'; __file__='"'"'C:\\Users\\campione\\AppData\\Local\\Temp\\pip-install-fiabozry\\lazyxml\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\campione\AppData\Local\Temp\pip-pip-egg-info-_nv05fei'
cwd: C:\Users\campione\AppData\Local\Temp\pip-install-fiabozry\lazyxml\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\campione\AppData\Local\Temp\pip-install-fiabozry\lazyxml\setup.py", line 16, in <module>
import lazyxml
File "C:\Users\campione\AppData\Local\Temp\pip-install-fiabozry\lazyxml\lazyxml\__init__.py", line 15, in <module>
from . import builder
File "C:\Users\campione\AppData\Local\Temp\pip-install-fiabozry\lazyxml\lazyxml\builder.py", line 7, in <module>
import utils
ModuleNotFoundError: No module named 'utils'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'm completely new to Python so bear with me, but I think it can maybe be related to "utils" module missing, as you can read at the end.
I don't understand why I could install other python packages in the same way but not this one unfortunately.
Removing Python 3 and installing Python 2 worked for some reason.
Related
when I run my python script, I get this error:
import win32crypt:
ImportError: DLL load failed: The specified module could not be found.
I'm on Windows 10 and I am using Python 2.7 because the project I am trying to run was made in python 2.7
I tried running the script and got this error.
I tried all the solutions in this thread too: Can't import win32crypt python module
except pip install pypiwin32: which returns this error:
Using cached pypiwin32-223.tar.gz (622 bytes)
ERROR: Command errored out with exit status 1:
command: 'C:\Python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\matma\\appdata\\local\\temp\\pip-install-f4ecmx\\pypiwin32\\setup.py'"'"'; __file__='"'"'c:\\users\\matma\\appdata\\local\\temp\\pip-install-f4ecmx\\pypiwin32\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\users\matma\appdata\local\temp\pip-pip-egg-info-tsajuh'
cwd: c:\users\matma\appdata\local\temp\pip-install-f4ecmx\pypiwin32\
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python27\lib\site-packages\setuptools\__init__.py", line 21, in <module>
import setuptools.version
File "C:\Python27\lib\site-packages\setuptools\version.py", line 1, in <module>
import pkg_resources
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1380
raise SyntaxError(e) from e
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
why Iam getting this error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\kodal\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kodal\\AppData\\Local\\Temp\\pip-install-odzer82v\\pyobjc-framework-Quartz\\setup.py'"'"'; __file__='"'"'C:\\Users\\kodal\\AppData\\Local\\Temp\\pip-install-odzer82v\\pyobjc-framework-Quartz\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\pip-egg-info'
cwd: C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\setup.py", line 67, in <module>
py_limited_api=True,
File "C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\pyobjc_setup.py", line 420, in Extension
if "clang" in get_config_var("CC"):
TypeError: argument of type 'NoneType' is not iterable
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'll take a guess here, but your traceback shows that you're on Windows, but pyobjc-framework-Quartz is a macOS framework. That same command worked fine on my macOS machine.
I am new to coding and I am doing a project using sound recognition and there is an error; when I try to write:
pip install port audio
It shows me this:
ERROR: Command errored out with exit status 1:
command: 'c:\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\nandith\\AppData\\Local\\Temp\\pip-install-_q1bhzr0\\audio.coders\\setup.py'"'"'; __file__='"'"'C:\\Users\\nandith\\AppData\\Local\\Temp\\pip-install-_q1bhzr0\\audio.coders\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\nandith\AppData\Local\Temp\pip-pip-egg-info-ruslt7j1'
cwd: C:\Users\nandith\AppData\Local\Temp\pip-install-_q1bhzr0\audio.coders\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\nandith\AppData\Local\Temp\pip-install-_q1bhzr0\audio.coders\setup.py", line 5, in <module>
import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It seems the package name of ConfigParser was renamed to configparser.
Change:
import ConfigParser
to:
import configparser
I am trying to install the google-api-python-client and I keep getting this error:
ERROR: Command errored out with exit status 1: python setup.py egg_info
More specifically it happens when it is collecting 'googleapis-common-protos<2.0dev,>=1.6.0'. Any tips on how to solve this and has this happened to someone else? I have the latest version of python and pip
Here is the full command output:
ERROR: Command errored out with exit status 1:
command: 'c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASTHO_~1\\AppData\\Local\\Temp\\pip-install-x0cydaaa\\googleapis-common-protos\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASTHO_~1\\AppData\\Local\\Temp\\pip-install-x0cydaaa\\googleapis-common-protos\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ASTHO_~1\AppData\Local\Temp\pip-pip-egg-info-c2ymsdk9'
cwd: C:\Users\ASTHO_~1\AppData\Local\Temp\pip-install-x0cydaaa\googleapis-common-protos\
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\dist.py", line 16, in <module>
import pkg_resources
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\pkg_resources.py", line 1479, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
When I try to install pyDNS by "pip install pyDNS" i get;
ERROR: Command errored out with exit status 1:
command: 'c:\users\עידן\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\עידן\\AppData\\Local\\Temp\\pip-install-856byly1\\pydns\\setup.py'"'"'; __file__='"'"'C:\\Users\\עידן\\AppData\\Local\\Temp\\pip-install-856byly1\\pydns\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\עידן\AppData\Local\Temp\pip-install-856byly1\pydns\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\עידן\AppData\Local\Temp\pip-install-856byly1\pydns\setup.py", line 12, in <module>
import DNS
File "C:\Users\עידן\AppData\Local\Temp\pip-install-856byly1\pydns\DNS\__init__.py", line 14, in <module>
import Type,Opcode,Status,Class
ModuleNotFoundError: No module named 'Type'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check
the logs for full command output.
I see python38-32 in the directory path. It's not Python 2.7, and the module is Python2-only.