Every time I am installing a package for my python3 via pip3 it downloads or browses cache and returns a similar error.
I've already tried sudo -H flag but same results.
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0l02yx4z/numba/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0l02yx4z/numba/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 /tmp/pip-install-0l02yx4z/numba/pip-egg-info
cwd: /tmp/pip-install-0l02yx4z/numba/
Complete output (36 lines):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2857, in get_entry_map
ep_map = self._ep_map
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2815, in __getattr__
raise AttributeError(attr)
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-0l02yx4z/numba/setup.py", line 365, in <module>
setup(**metadata)
File "/usr/local/lib/python3.6/dist-packages/setuptools/__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "/usr/local/lib/python3.6/dist-packages/setuptools/__init__.py", line 133, in _install_setup_requires
(k, v) for k, v in attrs.items()
File "/usr/local/lib/python3.6/dist-packages/setuptools/dist.py", line 444, in __init__
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 656, in <genexpr>
for entry in dist.get_entry_map(group).values()
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2860, in get_entry_map
self._get_metadata('entry_points.txt'), self
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2527, in parse_map
for group, lines in data:
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 3198, in split_sections
for line in yield_lines(s):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2387, in yield_lines
for ss in strs:
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2767, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 1432, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 1424, in get_metadata
return value.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte in entry_points.txt file at path: /usr/local/lib/python3.6/dist-packages/tensorflow_gpu-1.14.0+nv19.9.dist-info/entry_points.txt
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
if by any change you are using a Windows machine, you could probably enable utf-8 in the administrative regional settings:
Enable utf-8 in Regional Settings
this resolved this issue for me.
Related
In my code I am trying to use :
from dbn.tensorflow import SupervisedDBNClassification
I got on this error:
Import "dbn.tensorflow" could not be resolved
Any solution please?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Update:
After install requirements.txt
ERROR: Command errored out with exit status 1:
command: 'c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-794c6ozn\\scipy\\setup.py'"'"'; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-794c6ozn\\scipy\\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\pc\AppData\Local\Temp\pip-install-794c6ozn\scipy\
Complete output (93 lines):
Running from numpy source directory.
C:\Users\pc\AppData\Local\Temp\easy_install-e0ydh06f\numpy-1.23.1\setup.py:86: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.command.sdist
Traceback (most recent call last):
File "C:\Users\pc\AppData\Local\Temp\easy_install-e0ydh06f\numpy-1.23.1\setup.py", line 251, in generate_cython
- `pip install .` (from a git repo or downloaded source
ModuleNotFoundError: No module named 'Cython'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
yield saved
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
yield
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:\Users\pc\AppData\Local\Temp\easy_install-e0ydh06f\numpy-1.23.1\setup.py", line 493, in <module>
File "C:\Users\pc\AppData\Local\Temp\easy_install-e0ydh06f\numpy-1.23.1\setup.py", line 475, in setup_package
File "C:\Users\pc\AppData\Local\Temp\easy_install-e0ydh06f\numpy-1.23.1\setup.py", line 258, in generate_cython
if '--help' in sys.argv[1:] or '-h' in sys.argv[1]:
OSError: Cython needs to be installed in Python as a module
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\pc\AppData\Local\Temp\pip-install-794c6ozn\scipy\setup.py", line 415, in <module>
setup_package()
File "C:\Users\pc\AppData\Local\Temp\pip-install-794c6ozn\scipy\setup.py", line 411, in setup_package
setup(**metadata)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
dist = best[req.key] = env.best_match(
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
return installer(requirement)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
return cmd.easy_install(req)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "c:\users\pc\desktop\ali\rbfnetworks\deep-belief-network-master\env\lib\site-packages\setuptools\command\easy_install.py", line 7
If you installed through pip, you probably installed this library: Decentralized-Bluetooth-Network. Not what you were looking for.
You just have to follow the instruction at the Github repository. I'll write them below:
First clone the repository: git clone https://github.com/albertbup/deep-belief-network.git
Move to the cloned repository folder: cd deep-belief-network
If you are using an environment create it and activate it
Execute pip install -r requirements.txt to install all the requirements needed.
I have a docker image in which I'm trying to install pyicu (version 2.3 but other versions fail to install as well). Installation of pyicu works there. I used to build FROM python:3.6 in the Dockerfile but now upgrading to use ubuntu:21.04 and getting the error below. Using Python 3.6 and running apt-get -y update && apt-get install -y --no-install-recommends libicu-dev in both.
I see that a potential issue could be that the pkg-config package has been deleted from Ubuntu 21 https://www.ubuntuupdates.org/package/core/impish/main/proposed/pkg-config. Is this the root of the issue and if so how can I resolve it?
Downloading https://docker.artifactory.enigma.com/artifactory/api/pypi/pypi/packages/packages/87/10/fdf5842f42834f6e3141668b607c07bc3c94de39acf582c3d4015e7a7fc5/PyICU-2.3.tar.gz (214 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /root/.pyenv/versions/3.6.10/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-lv3srr2x
cwd: /tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/
Complete output (53 lines):
(running 'icu-config --version')
(running 'pkg-config --modversion icu-i18n')
Traceback (most recent call last):
File "/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py", line 62, in <module>
ICU_VERSION = os.environ['ICU_VERSION']
File "/root/.pyenv/versions/3.6.10/lib/python3.6/os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'ICU_VERSION'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py", line 65, in <module>
ICU_VERSION = check_output(('icu-config', '--version')).strip()
File "/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py", line 18, in check_output
return subprocess_check_output(popenargs)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'icu-config': 'icu-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py", line 68, in <module>
ICU_VERSION = check_output(('pkg-config', '--modversion', 'icu-i18n')).strip()
File "/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py", line 18, in check_output
return subprocess_check_output(popenargs)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config': 'pkg-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-g23e769w/pyicu_fa1d77f63b4346f48975bf7f3d7508cc/setup.py", line 73, in <module>
''')
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.
----------------------------------------
WARNING: Discarding https://docker.artifactory.enigma.com/artifactory/api/pypi/pypi/packages/packages/87/10/fdf5842f42834f6e3141668b607c07bc3c94de39acf582c3d4015e7a7fc5/PyICU-2.3.tar.gz#sha256=419d389b014ee48f31014920f300c842df0770a283ab1fb4de82a6af334cac4d (from https://docker.artifactory.enigma.com/artifactory/api/pypi/pypi/simple/pyicu/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Downloading PyICU-2.3.tar.gz (214 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /root/.pyenv/versions/3.6.10/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rv07hczd
cwd: /tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/
Complete output (53 lines):
(running 'icu-config --version')
(running 'pkg-config --modversion icu-i18n')
Traceback (most recent call last):
File "/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py", line 62, in <module>
ICU_VERSION = os.environ['ICU_VERSION']
File "/root/.pyenv/versions/3.6.10/lib/python3.6/os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'ICU_VERSION'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py", line 65, in <module>
ICU_VERSION = check_output(('icu-config', '--version')).strip()
File "/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py", line 18, in check_output
return subprocess_check_output(popenargs)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'icu-config': 'icu-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py", line 68, in <module>
ICU_VERSION = check_output(('pkg-config', '--modversion', 'icu-i18n')).strip()
File "/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py", line 18, in check_output
return subprocess_check_output(popenargs)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/root/.pyenv/versions/3.6.10/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config': 'pkg-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-g23e769w/pyicu_674899e91a7845b198565e0928c250ac/setup.py", line 73, in <module>
''')
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/87/10/fdf5842f42834f6e3141668b607c07bc3c94de39acf582c3d4015e7a7fc5/PyICU-2.3.tar.gz#sha256=419d389b014ee48f31014920f300c842df0770a283ab1fb4de82a6af334cac4d (from https://pypi.org/simple/pyicu/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyicu==2.3 (from versions: 0.8, 0.8.1, 0.9, 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.1, 2.2, 2.3, 2.3.1, 2.4, 2.4.1, 2.4.2, 2.4.3, 2.5, 2.6, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8)
ERROR: No matching distribution found for pyicu==2.3
I have tried to install the bls-lib library but this error kept showing, can anyone help me what's wrong with it? I even tried to install the petlib library because I thought that it will solve the problem but I got an almost simmilar error.
(venv) C:\Users\admin\PycharmProjects\Testing\venv>pip install bls-lib
Collecting bls-lib
Using cached bls_lib-1.0.1-py3-none-any.whl (16 kB)
Collecting bplib
Using cached bplib-0.0.6.tar.gz (40 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\pycharmprojects\testing\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Lo
cal\\Temp\\pip-install-bys_0pq0\\bplib\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-bys_0pq0\\bplib\\setup.py'"'"';f=getattr(tok
enize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-ba
se 'C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info-b9zc7inm'
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-bys_0pq0\bplib\
Complete output (63 lines):
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\pycharmprojects\testing\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData
\\Local\\Temp\\pip-wheel-p1rs96jl\\petlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-wheel-p1rs96jl\\petlib\\setup.py'"'"';f=getattr(t
okenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-
base 'C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info-iyyhus4_'
cwd: C:\Users\admin\AppData\Local\Temp\pip-wheel-p1rs96jl\petlib\
Complete output (27 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admin\AppData\Local\Temp\pip-wheel-p1rs96jl\petlib\setup.py", line 7, in <module>
setup(name='petlib',
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\distutils\core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 423, in __init__
_Distribution.__init__(self, {
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 292, in __init__
self.finalize_options()
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 695, in finalize_options
ep(self)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 702, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\cffi\setuptools_ext.py", line 219, in cffi_modules
add_cffi_module(dist, cffi_module)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\cffi\setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\cffi\setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "petlib/compile.py", line 34, in <module>
openssl_conf = os.environ["OPENSSL_CONF"]
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'OPENSSL_CONF'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Traceback (most recent call last):
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\installer.py", line 126, in fetch_build_egg
subprocess.check_call(cmd)
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\users\\admin\\pycharmprojects\\testing\\venv\\scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wh
eel', '--no-deps', '-w', 'C:\\Users\\admin\\AppData\\Local\\Temp\\tmpu5quqolr', '--quiet', 'petlib>=0.0.45']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admin\AppData\Local\Temp\pip-install-bys_0pq0\bplib\setup.py", line 7, in <module>
setup(name='bplib',
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 673, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\pkg_resources\__init__.py", line 764, in resolve
dist = best[req.key] = env.best_match(
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\pkg_resources\__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\pkg_resources\__init__.py", line 1061, in obtain
return installer(requirement)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 732, in fetch_build_egg
return fetch_build_egg(self, req)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['c:\\users\\admin\\pycharmprojects\\testing\\venv\\scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', '
wheel', '--no-deps', '-w', 'C:\\Users\\admin\\AppData\\Local\\Temp\\tmpu5quqolr', '--quiet', 'petlib>=0.0.45']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
This is the error of installing the petlib library:
(venv) C:\Users\admin\PycharmProjects\Testing>pip install petlib
Collecting petlib
Using cached petlib-0.0.45.tar.gz (245 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\pycharmprojects\testing\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Lo
cal\\Temp\\pip-install-yp8f_epx\\petlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-yp8f_epx\\petlib\\setup.py'"'"';f=getattr(t
okenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-
base 'C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info-gyl6jkzc'
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-yp8f_epx\petlib\
Complete output (27 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admin\AppData\Local\Temp\pip-install-yp8f_epx\petlib\setup.py", line 7, in <module>
setup(name='petlib',
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\distutils\core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 423, in __init__
_Distribution.__init__(self, {
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 292, in __init__
self.finalize_options()
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 695, in finalize_options
ep(self)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\setuptools\dist.py", line 702, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\cffi\setuptools_ext.py", line 219, in cffi_modules
add_cffi_module(dist, cffi_module)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\cffi\setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "c:\users\admin\pycharmprojects\testing\venv\lib\site-packages\cffi\setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "petlib/compile.py", line 34, in <module>
openssl_conf = os.environ["OPENSSL_CONF"]
File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'OPENSSL_CONF'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
When I do !pip install xlwings -vvv in Colab, I get the following. How to fix it?
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py", line 382, in run
resolver.resolve(requirement_set)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py", line 201, in resolve
self._resolve_one(requirement_set, req)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py", line 365, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py", line 313, in _get_abstract_dist_for
req, self.session, self.finder, self.require_hashes
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py", line 224, in prepare_linked_requirement
req, self.req_tracker, finder, self.build_isolation,
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py", line 49, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/distributions/source/legacy.py", line 39, in prepare_distribution_metadata
self.req.prepare_metadata()
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/req/req_install.py", line 563, in prepare_metadata
self.metadata_directory = metadata_generator(self)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/generate_metadata.py", line 124, in _generate_metadata_legacy
command_desc='python setup.py egg_info',
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
From its documentation
xlwings requires an installation of Excel and therefore only works on Windows and macOS.
So, you cannot use xlwings with Google Colab.
When I do "pip3 install sshtunnel" on my Fedora31 I get the following error:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cf_emmbs/sshtunnel/setup.py'"'"'; file='"'"'/tmp/pip-install-cf_emmbs/sshtunnel/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 /tmp/pip-pip-egg-info-98qrjgt1
cwd: /tmp/pip-install-cf_emmbs/sshtunnel/
Complete output (23 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-cf_emmbs/sshtunnel/setup.py", line 14, in
from setuptools.command.test import test as TestCommand
File "/usr/local/lib/python3.7/site-packages/setuptools/command/test.py", line 18, in
from .build_py import _unique_everseen
File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_py.py", line 16, in
from setuptools.lib2to3_ex import Mixin2to3
File "/usr/local/lib/python3.7/site-packages/setuptools/lib2to3_ex.py", line 12, in
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
File "/usr/lib64/python3.7/lib2to3/refactor.py", line 26, in
from .fixer_util import find_root
File "/usr/lib64/python3.7/lib2to3/fixer_util.py", line 7, in
from .pygram import python_symbols as syms
File "/usr/lib64/python3.7/lib2to3/pygram.py", line 32, in
python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE)
File "/usr/lib64/python3.7/lib2to3/pgen2/driver.py", line 156, in load_packaged_grammar
return load_grammar(grammar_source)
File "/usr/lib64/python3.7/lib2to3/pgen2/driver.py", line 131, in load_grammar
g.load(gp)
File "/usr/lib64/python3.7/lib2to3/pgen2/grammar.py", line 108, in load
d = pickle.load(f)
EOFError: Ran out of input
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I have pip3 and setuptools updated at the last version.
Thanks for your help!