Python NameError: nombre 'archivo' no está definido
No sé mucho sobre python. Quiero comenzar a trabajar en el proyecto y la instrucción de configuración dice:
pip install -r requirements-dev.txt
Enougth simple. El problema es que me sale esto:
Downloading/unpacking gunicorn==0.13.4 (from -r requirements.txt (line 7))
Running setup.py egg_info for package gunicorn
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/gunicorn/setup.py", line 18, in <module>
long_description = file(
NameError: name 'file' is not defined
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/gunicorn/setup.py", line 18, in <module>
long_description = file(
NameError: name 'file' is not defined
No entiendo el problema. Tal vez alguien puede ayudar?
Ejecuto esto en Arch Linux, Python por defecto es python 3 y el proyecto no es python 3, pero no estoy seguro de que así sea.
Gracias.