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.
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
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!
Currently I am installing requirement file in using Virtualenv & got unexpected error of wrapt.
I have tried to find solution from google but not able to solve my issue.
Trackback of error is as below.
Building wheels for collected packages: wrapt
Building wheel for wrapt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\production\sparrow_v2\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"
'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"'; __file__='"'"'C:\\Users\\admi\\App
Data\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f
.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C
:\Users\admi\AppData\Local\Temp\pip-wheel-5dx2m136'
cwd: C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\
Complete output (59 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\wrapt
copying src\wrapt\decorators.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\importer.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\wrappers.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\__init__.py -> build\lib.win32-3.7\wrapt
running build_ext
building 'wrapt._wrappers' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 101, in <module>
run_setup(with_extensions=True)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 71, in run_setup
setup(**setup_kwargs_tmp)
File "C:\Python37\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python37\Lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\production\sparrow_v2\venv\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Python37\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 25, in run
build_ext.run(self)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 31, in build_extension
build_ext.build_extension(self, ext)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 534, in build_extension
depends=ext.depends)
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 346, in compile
self.initialize()
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 239, in initialize
vc_env = _get_vc_env(plat_spec)
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 1620, in return_env
if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
File "d:\production\sparrow_v2\venv\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
----------------------------------------
ERROR: Failed building wheel for wrapt
Running setup.py clean for wrapt
Failed to build wrapt
ERROR: django-cache-manager 0.5.1 has requirement Django<1.11, but you'll have django 2.2.6 which is incompatible.
ERROR: pyexcel-xlsx 0.5.7 has requirement openpyxl<2.6.0,>=2.5.0, but you'll have openpyxl 3.0.2 which is incompatible.
Installing collected packages: pycparser, cffi, six, cryptography, idna, certifi, urllib3, chardet, requests, python-dat
eutil, PyJWT, adal, vine, amqp, anyjson, asgiref, asn1crypto, typed-ast, lazy-object-proxy, wrapt, astroid, backports.fu
nctools-lru-cache, soupsieve, beautifulsoup4, billiard, bitmath, boto, bson, pytz, more-itertools, zipp, importlib-metad
ata, kombu, celery, colorama, configparser, cron-descriptor, croniter, crontab, tzlocal, regex, dateparser, sqlparse, Dj
ango, django-cache-manager, django-js-asset, django-ckeditor, django-common-helpers, django-contrib-comments, django-cps
erver, django-crispy-forms, django-debug-toolbar, django-debug-panel, django-grappelli, Pillow, django-filebrowser, djan
go-mptt, django-mssql, jsonfield, django-post-office, pyodbc, django-pyodbc, unicodecsv, django-queryset-csv, future, dj
ango-ses, django-smtp-ssl, python-tds, django-sqlserver, django-storages, django-stronghold, django-tagging, psycopg2-bi
nary, ordered-set, django-tenant-schemas, django-widget-tweaks, django-xmlrpc, elasticsearch, enum34, et-xmlfile, future
s, webencodings, html5lib, huBarcode, isodate, isort, jdcal, jieba, json-table-schema, jsonpickle, lml, lxml, mccabe, py
thon-magic, xlrd, messytables, mots-vides, oauthlib, requests-oauthlib, msrest, msrestazure, numpy, openpyxl, pandas, pd
fkit, psycopg2, ptvsd, pycryptodome, pyexcel-io, texttable, pyexcel, pyexcel-xlsx, pylint, pyparsing, pyStrich, pywin32,
PyYAML, requests-toolbelt, singledispatch, SQLAlchemy, TextEncoder, uamqp, Unidecode, virtualenv, waitress, wfastcgi, x
lwt, xmltodict
Running setup.py install for wrapt ... error
ERROR: Command errored out with exit status 1:
command: 'd:\production\sparrow_v2\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"'; __file__='"'"'C:\\Users\\admi\\A
ppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code
=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --recor
d 'C:\Users\admi\AppData\Local\Temp\pip-record-1buc2ntu\install-record.txt' --single-version-externally-managed --compil
e --install-headers 'd:\production\sparrow_v2\venv\include\site\python3.7\wrapt'
cwd: C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\
Complete output (61 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\wrapt
copying src\wrapt\decorators.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\importer.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\wrappers.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\__init__.py -> build\lib.win32-3.7\wrapt
running build_ext
building 'wrapt._wrappers' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 101, in <module>
run_setup(with_extensions=True)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 71, in run_setup
setup(**setup_kwargs_tmp)
File "C:\Python37\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python37\Lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Python37\Lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Python37\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 25, in run
build_ext.run(self)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 31, in build_extension
build_ext.build_extension(self, ext)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 534, in build_extension
depends=ext.depends)
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 346, in compile
self.initialize()
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 239, in initialize
vc_env = _get_vc_env(plat_spec)
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 1620, in return_env
if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
File "d:\production\sparrow_v2\venv\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\production\sparrow_v2\venv\scripts\python.exe' -u -c 'import sys, set
uptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';
__file__='"'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';f=getattr(tokenize, '"'
"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record 'C:\Users\admi\AppData\Local\Temp\pip-record-1buc2ntu\install-record.txt' --single-ve
rsion-externally-managed --compile --install-headers 'd:\production\sparrow_v2\venv\include\site\python3.7\wrapt' Check
the logs for full command output.
$ pip3 install wheel
worked for me,
regards!
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.