On 12/20/2019 2:22 AM, Mahmood Naderan via Python-list wrote:

However, pip3 fails with this error
$ pip3 install --user collect
Collecting collect
   Using cached 
https://files.pythonhosted.org/packages/cf/5e/c0f0f51d081665374a2c219ea4ba23fb1e179b70dded96dc16606786d828/collect-0.1.1.tar.gz
Collecting couchdbkit>=0.5.7 (from collect)
   Using cached 
https://files.pythonhosted.org/packages/a1/13/9e9ff695a385c44f62b4766341b97f2bd8b596962df2a0beabf358468b70/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-qf95n0tt/couchdbkit/setup.py", line 25, in <module>
         long_description = file(
     NameError: name 'file' is not defined

The builtin function 'file' does not exist in 3.x. pip3 is trying to install 2.x code. I suspect this is because the package is not properly labelled as 2.x only. (Some 2.x code will run unaltered on 3.x, so pip should try even if 3.x is not specified.)


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to