I have been trying to install orange3 on my Linux machine. Upon trying:
pip3 install orange3
I get this verbos error:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting orange3
Using cached Orange3-3.27.1-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB)
Collecting AnyQt>=0.0.11
Downloading AnyQt-0.0.11-py2.py3-none-any.whl (46 kB)
Collecting baycomp>=1.0.2
Using cached baycomp-1.0.2-py3-none-any.whl (17 kB)
Requirement already satisfied: pip>=9.0 in ./.local/lib/python3.6/site-packages (from orange3) (20.2.4)
Requirement already satisfied: scikit-learn!=0.23.0,>=0.22.0 in ./.local/lib/python3.6/site-packages (from orange3) (0.22.1)
...
Collecting orange-widget-base>=4.8.1
Using cached orange_widget_base-4.9.0-py3-none-any.whl (229 kB)
...
Collecting python-louvain>=0.13
Using cached python-louvain-0.14.tar.gz (19 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_us67ap2/python-louvain/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_us67ap2/python-louvain/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-t2a936sw
cwd: /tmp/pip-install-_us67ap2/python-louvain/
Complete output (28 lines):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2455, in resolve
return functools.reduce(getattr, self.attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_us67ap2/python-louvain/setup.py", line 25, in <module>
scripts=['bin/community']
...
raise ImportError(str(exc)) from exc
ImportError: type object 'Distribution' has no attribute '_finalize_feature_opts'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I have already tried updating pip as well as setup-tools using
pip install --upgrade pip
etc but I still get this error.
You probably have a too old version of the setuptools package. Try upgrading it (and pip as well, while you're at it): python3 -m pip install setuptools pip.
Here's a link to a setuptools issue describing the problem: https://github.com/pypa/setuptools/issues/2029
Related
I am trying to emulate the Glassdoor API call that is described on this GitHub repository. Below is the example that was used. Seems pretty straight forward but I am running into issues with the pip command.
pip install glassdoor
from glassdoor import get
x = get('dropbox')
x
When I run this part:
pip install glassdoor
I get the below output/error:
Collecting glassdoor
Downloading glassdoor-0.0.8.tar.gz (5.7 kB)
Requirement already satisfied: requests>=1.1.0 in c:\users\<user>\anaconda3\lib\site-packages (from glassdoor) (2.25.1)
Collecting BeautifulSoup>=3.2.1
Using cached BeautifulSoup-3.2.2.tar.gz (32 kB)
Using cached BeautifulSoup-3.2.1.tar.gz (31 kB)
Collecting glassdoor
Downloading glassdoor-0.0.4.tar.gz (5.1 kB)
Downloading glassdoor-0.0.2.tar.gz (3.8 kB)
Downloading glassdoor-0.0.1.tar.gz (3.1 kB)
The conflict is caused by:
glassdoor 0.0.8 depends on BeautifulSoup>=3.2.1
glassdoor 0.0.4 depends on BeautifulSoup>=3.2.1
glassdoor 0.0.2 depends on BeautifulSoup>=3.2.1
glassdoor 0.0.1 depends on BeautifulSoup>=3.2.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
Note: you may need to restart the kernel to use updated packages.
ERROR: Command errored out with exit status 1:
command: 'c:\Users\<user>\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\\setup.py'"'"'; __file__='"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\\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\<user>\AppData\Local\Temp\pip-pip-egg-info-gdpczqw5'
cwd: C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\setup.py", line 3
"You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
^
SyntaxError: invalid syntax
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/40/f2/6c9f2f3e696ee6a1fb0e4d7850617e224ed2b0b1e872110abffeca2a09d4/BeautifulSoup-3.2.2.tar.gz#sha256=a04169602bff6e3138b1259dbbf491f5a27f9499dea9a8fbafd48843f9d89970 (from https://pypi.org/simple/beautifulsoup/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'c:\Users\<user>\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\\setup.py'"'"'; __file__='"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\\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\<user>\AppData\Local\Temp\pip-pip-egg-info-mpb24z6z'
cwd: C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz#sha256=6a8cb4401111e011b579c8c52a51cdab970041cc543814bbd9577a4529fe1cdb (from https://pypi.org/simple/beautifulsoup/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Cannot install glassdoor==0.0.1, glassdoor==0.0.2, glassdoor==0.0.4 and glassdoor==0.0.8 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
I have tried in both CoLab and Visual Studio Code and get the same error. I have also tried uninstalling both the Glassdoor and the BeautifulSoup4 packages and reinstalling the latest versions to no avail.
Does anyone have any insight on how to fix this?
Running pip install -r ./requirements fails for signXMl module. Where pip is there in a VENV.
Python version: 3.8.
OS: MAC OS, python installation using brew.
Error:
Using cached future-0.18.1.tar.gz (828 kB)
ERROR: Command errored out with exit status 1:
command: /Users/rahulroy/Desktop/work/data_new/data/venv/bin/python3.8 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c3/vl0yxxj17fvbwkh1msldlhnc0000gn/T/pip-install-4_opjnck/future_29cfb8bb91d24ea5b8bad3f63de44251/setup.py'"'"'; __file__='"'"'/private/var/folders/c3/vl0yxxj17fvbwkh1msldlhnc0000gn/T/pip-install-4_opjnck/future_29cfb8bb91d24ea5b8bad3f63de44251/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 /private/var/folders/c3/vl0yxxj17fvbwkh1msldlhnc0000gn/T/pip-pip-egg-info-lflwd8df
cwd: /private/var/folders/c3/vl0yxxj17fvbwkh1msldlhnc0000gn/T/pip-install-4_opjnck/future_29cfb8bb91d24ea5b8bad3f63de44251/
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/rahulroy/Desktop/work/data_new/data-gateway/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 3, in <module>
from fnmatch import fnmatchcase
File "/usr/local/Cellar/python#3.8/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/fnmatch.py", line 14, in <module>
import re
File "/usr/local/Cellar/python#3.8/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/re.py", line 127, in <module>
import functools
File "/usr/local/Cellar/python#3.8/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/functools.py", line 18, in <module>
from collections import namedtuple
File "/usr/local/Cellar/python#3.8/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/collections/__init__.py", line 27, in <module>
from reprlib import recursive_repr as _recursive_repr
File "/private/var/folders/c3/vl0yxxj17fvbwkh1msldlhnc0000gn/T/pip-install-4_opjnck/future_29cfb8bb91d24ea5b8bad3f63de44251/src/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
--------------------------------
Which ultimately fails with this error:
INFO: pip is looking at multiple versions of alembic to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install signxml because these package versions have conflicting dependencies.
The conflict is caused by:
eight 1.0.1 depends on future<0.19 and >=0.16
eight 1.0.0 depends on future<0.19 and >=0.16
eight 0.4.2 depends on future<0.17 and >=0.16
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
WARNING: You are using pip version 21.1.1; however, version 21.2.4 is available.
Parts of requirements.txt
s3transfer==0.3.3
signxml==2.8.2
six==1.15.0
soupsieve==2.2.1
SQLAlchemy==1.3.18
toml==0.10.1
urllib3==1.25.10
validators==0.18.2
virtualenv==20.0.30
Werkzeug==1.0.1
xmltodict==0.12.0
yapf==0.30.0
zipfile38==0.0.3
The pip logs before the error:
> Requirement already satisfied: setuptools>=3.0 in
> ./venv/lib/python3.8/site-packages (from gunicorn==20.0.4->-r
> requirements.txt (line 41)) (56.0.0) Collecting macholib>=1.8 Using
> cached macholib-1.15.2-py2.py3-none-any.whl (37 kB) Collecting
> eight<2,>=0.4.2 Using cached eight-1.0.1-py2.py3-none-any.whl (10
> kB) Collecting pyopenssl Using cached
> pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB) Collecting
> decorator>=3.4.0 Using cached decorator-5.1.0-py3-none-any.whl (9.1
> kB) Collecting future<0.19,>=0.16 Using cached future-0.18.2.tar.gz
> (829 kB)
How can I resolve this error?
I am having problems installing plotly on Windows 10 with Python 3.8.5. The command line prompt is in admin mode.
The package manager pip3 here seems to be installing the package retrying-1.3.3 which is running into an error:
ModuleNotFoundError: No module named '_distutils_hack'
Anybody has a solution for this? Greatly appreciate your time. Thanks
C:\ProgramData\Python38\Scripts>pip3 install plotly
Collecting plotly
Using cached plotly-4.14.1-py2.py3-none-any.whl (13.2 MB)
Requirement already satisfied: six in c:\programdata\python38\lib\site-packages (from plotly) (1.15.0)
Collecting retrying>=1.3.3
Using cached retrying-1.3.3.tar.gz (10 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\programdata\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\student\\AppData\\Local\\Temp\\pip-install-2qndeluw\\retrying_de785ef56b9d4150b577dd9f4437e271\\setup.py'"'"'; __file__='"'"'C:\\Users\\student\\AppData\\Local\\Temp\\pip-install-2qndeluw\\retrying_de785ef56b9d4150b577dd9f4437e271\\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\student\AppData\Local\Temp\pip-pip-egg-info-3tjoj6d_'
cwd: C:\Users\student\AppData\Local\Temp\pip-install-2qndeluw\retrying_de785ef56b9d4150b577dd9f4437e271\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\programdata\python38\lib\site-packages\setuptools\__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
ModuleNotFoundError: No module named '_distutils_hack'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The problem may be that the version of the 'setuptools' package is too old. I just updated it when I encountered this problem before.
pip install --upgrade setuptools
Whenever I try to pip install cantools==34.0.0 (on python 2.7)
i receive the error:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support
in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting cantools==34.0.0
Using cached cantools-34.0.0-py2.py3-none-any.whl (77 kB)
Collecting diskcache
Using cached diskcache-5.0.2.tar.gz (47 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\bla\\appdata\\local\\temp\\pip-install-4or8zd\\diskcache\\setup.py'"'"'; __file__='"'"'c:\\
users\\bla\\appdata\\local\\temp\\pip-install-4or8zd\\diskcache\\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\bla\appdata\local\temp\pip-pip-egg-info-mxhtc0'
cwd: c:\users\bla\appdata\local\temp\pip-install-4or8zd\diskcache\
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\bla\appdata\local\temp\pip-install-4or8zd\diskcache\setup.py", line 5, in <module>
import diskcache
File "diskcache\__init__.py", line 9, in <module>
from .core import (
File "diskcache\core.py", line 434
raise ValueError('disk must subclass diskcache.Disk') from None
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Can anyone please help me? It seems like it happens when it tries to install the package diskcache
I fixed it, the problem was with installing the diskcache module,
By default it tried to install a python 3 version supported version
when I manually installed it pip install diskcache==4.1.0
and then installed cantools again it worked.
(catalyst) C:\Users\deliseev\Documents\Pyhon>pip install enigma-catalyst matplotlib
Collecting enigma-catalyst
Using cached enigma-catalyst-0.5.21.tar.gz (767 kB)
Collecting matplotlib
Using cached matplotlib-3.2.1-cp36-cp36m-win_amd64.whl (9.2 MB)
Requirement already satisfied: pip>=7.1.0 in c:\programdata\anaconda3\envs\catalyst\lib\site-packages (from enigma-catalyst) (20.0.2)
Collecting setuptools==38.5.1
Using cached setuptools-38.5.1-py2.py3-none-any.whl (489 kB)
Collecting Logbook==0.12.5
Using cached Logbook-0.12.5.tar.gz (166 kB)
**ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\catalyst\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deliseev\\AppData\\Local\\Temp\\pip-install-3jmpw5h7\\Logbook\\setup.py'"'"'; __file__='"'"'C:\\Users\\deliseev\\AppData\\Local\\Temp\\pip-install-3jmpw5h7\\Logbook\\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\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\pip-egg-info'
cwd: C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\setup.py", line 57, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.**
as i can see from error, its some issue with setuptools, but is successfully istalled in pevios lines
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
(base) C:\Users\deliseev>python --version
Python 3.7.6
Managed to change version of setuptools, the restart
pip3 install setuptools==45
pip install enigma-catalyst matplotlib
The problem was described here
https://github.com/pypa/setuptools/issues/2017