I am unable to install couchdbkit in ubuntu. The command: pip3 install couchdbkit gives this following error:
Collecting couchdbkit
Using cached couchdbkit-0.6.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-_302m_0e/couchdbkit/setup.py", line 25, in <module>
long_description = file(
NameError: name 'file' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_302m_0e/couchdbkit/
Please guide me if there any other way to install couchdbkit in ubuntu.
That is because couchdbkit is not supported in python3. file was removed in versions 3x from python. This is also indicated here:
Couchdbkit requires Python 2.x superior to 2.6.
Why pip3 still tries to download it is another issue.
Related
On using command pip install watson-machine-learning-client
The terminal throws error, here is the output of terminal:
pip install watson-machine-learning-client
Collecting watson-machine-learning-client
Using cached https://files.pythonhosted.org/packages/7a/ea/75de2fe2373cb3d2f0c7342b35956c4df62fce5a312cfd652a339bfb97a0/watson_machine_learning_client-1.0.357.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/l0/8fv181bn3nb6fdrnyk87j7qc0000gn/T/pip-install-oRyoix/watson-machine-learning-client/setup.py", line 30, in <module>
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/l0/8fv181bn3nb6fdrnyk87j7qc0000gn/T/pip-install-oRyoix/watson-machine-learning-client/
you are using python 2 to install the package, which is incorrectly listed as supporting python 2 on PyPi. As you can see on the official homepage (Requirements section):
Watson Machine Learning service instance, you can create instance using this link. Only Python 3.5 or newer is supported.
You can try backporting the code to python 2, but I would rather recommend using pyhton 3 here.
I'm working on a Twilio texting program I can't install foundations I keep getting this issue. I've already tried reinstalling pip, easy_setup, pip wheel, django, and python.
I have no idea why i'm still getting this error. I'm running Mac Osx
Collecting Foundations==2.1.0 (from -r requirements.txt (line 14))
Using cached https://files.pythonhosted.org/packages/d4/c4/341b76267c3969b46170f715524259c1c170992253cb7c425d746cb2e322/Foundations-2.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/l5/k0m1stsn5yz8x0sx_wj4z9qm0000gn/T/pip-install-xi0ft4n3/Foundations/setup.py", line 35, in <module>
_setEncoding()
File "/private/var/folders/l5/k0m1stsn5yz8x0sx_wj4z9qm0000gn/T/pip-install-xi0ft4n3/Foundations/setup.py", line 31, in _setEncoding
reload(sys)
NameError: name 'reload' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/l5/k0m1stsn5yz8x0sx_wj4z9qm0000gn/T/pip-install-xi0ft4n3/Foundations/
Foundations is only for Python 2.7.
I'm new to python and i have been trying to install brew 0.1.4. I get the following error.
C:\Users\sys>pip install brew
Collecting brew
Using cached brew-0.1.4.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\sys\AppData\Local\Temp\pip-build-m49ufx8l\brew\setup.py",line 22, in <module>
with open('requirements.txt') as fid:
FileNotFoundError: [Errno 2] No such file or directory:'requirements.txt'
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\sys\AppData\Local\Temp\pip-build-m49ufx8l\brew\
I have tried the freeze method to create the requirements file but still get the same error. Help me resolve this.
$ pip freeze > requirements.txt
The requirements.txt seems to be missing in the .zip file from pypi. Try installing from the github repository instead:
pip install git+https://github.com/viisar/brew.git
i'm installing github's python-weka-wrapper with the latest version.
i've installed other library with "pip install ___".
but i got this error code when i'm trying to install the python-weka-wrapper pkg
Collecting python-weka-wrapper
Using cached python-weka-wrapper-0.3.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/sf/fwjdy8n10j721jhhp85cpbz40000gn/T/pip-build-xdr96_le/python-weka-wrapper/setup.py", line 41
except HTTPError, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/sf/fwjdy8n10j721jhhp85cpbz40000gn/T/pip-build-xdr96_le/python-weka-wrapper/
this msg keep pops in and i've edited "HTTPError, e" syntax to "HTTPError as e"
and this error aren't solved yet.
please help me!!!!!!!!!
Your log output indicates that you're trying to install version python-weka-wrapper, which is Python 2.7 only. Instead, install python-weka-wrapper3 when using Python 3.
This is the link from where i am trying to download the scraper:
https://pypi.python.org/pypi/amazon_scraper/0.1.2
After trying the command ( pip install amazon_scraper) i get this error :
pip install amazon_scraper
Collecting amazon-scraper
Using cached amazon_scraper-0.3.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "c:\users\saurin\appdata\local\temp\pip-build-jxcqui\amazon-scraper\setup.py", line 4, in <module>
del os.link
AttributeError: link
[31mCommand "python setup.py egg_info" failed with error code 1 in
c:\users\saurin\appdata\local\temp\pip-build-jxcqui\amazon-scraper[0m
I tried downloading the rar file running the setup file. I am getting various issues, does any one have solution to this ?
Ensure that you have all the require dependencies installed.
python-amazon-simple-product-api
requests
beautifulsoup4
xmltodict
python-dateutil