Intalling from requirements.txt fails - python

I am trying to install the requirements of an old project and I am hitting a few problems. One of which I can't figure out is this error:
Requirement already satisfied (use --upgrade to upgrade): wsgiref==0.1.2 in /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 (from -r requirements.txt (line 38))
Installing collected packages: distribute, dj-database-url, django-celery, django-debug-toolbar, django-heroku-memcacheify, django-pylibmc-sasl, facebook-sdk, gdata, gevent, google-api-python-client, greenlet, gunicorn, htmlentities, httplib2, kombu, nltk, psycopg2, pygeoip, pylibmc, pymongo, python-dateutil, python-gflags, pytz, shortuuid, simplejson, sleekxmpp
Running setup.py install for distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages/setuptools-3.5.1-py2.7.egg
Egg installation
Patching...
Renaming /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages/setuptools-3.5.1-py2.7.egg into /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages/setuptools-3.5.1-py2.7.egg.OLD.1401611004.21
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
Complete output from command /Users/pp/www/hintortwoDEV/venv/bin/python -c "import setuptools, tokenize;__file__='/Users/pp/www/hintortwoDEV/venv/build/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1G5NO8-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/pp/www/hintortwoDEV/venv/include/site/python2.7:
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages/setuptools-3.5.1-py2.7.egg
Egg installation
Patching...
Renaming /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages/setuptools-3.5.1-py2.7.egg into /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages/setuptools-3.5.1-py2.7.egg.OLD.1401611004.21
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
----------------------------------------
Cleaning up...
Command /Users/pp/www/hintortwoDEV/venv/bin/python -c "import setuptools, tokenize;__file__='/Users/pp/www/hintortwoDEV/venv/build/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1G5NO8-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/pp/www/hintortwoDEV/venv/include/site/python2.7 failed with error code 1 in /Users/pp/www/hintortwoDEV/venv/build/distribute
Storing debug log for failure in /Users/pp/.pip/pip.log
I don't understand the error at all so you can provide explanation and logical fix for it that would be awesoming.
UPDATE 1:
(answering the questions in the comments)
#burhan: python is 2.7. I lost log because I cleaned it up to show you that specific error, but then other errors and then i couldn't reproduce it :(
#SeMeKh: yes, it says: pip 1.5.6 from /Users/pp/www/hintortwoDEV/venv/lib/python2.7/site-packages (python 2.7)
#Padraic: distribute==0.6.28

Related

Error while installing turicreate using pip ...while building wheel for llvmlite

I am trying to install turicreate using pip install turicreate but receive the error below. I don't know what this error is telling me to do.
Someone in the comments asked if I installed llvm correctly. How would I do this?
I tried upgrading Scipy using pip install --upgrade scipy but this did not help.
Building wheel for llvmlite (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/harshavardhanhr/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/setup.py'"'"'; __file__='"'"'/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/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 /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-wheel-e0QD2K
cwd: /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/
Complete output (11 lines):
running bdist_wheel
/Users/harshavardhanhr/venv/bin/python /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py", line 168, in <module>
main()
File "/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py", line 162, in main
main_posix('osx', '.dylib')
File "/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py", line 109, in main_posix
"to the path for llvm-config" % (llvm_config,))
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/Users/harshavardhanhr/venv/bin/python' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
ERROR: tensorflow 2.1.0 has requirement scipy==1.2.2; python_version < "3", but you'll have scipy 1.2.3 which is incompatible.
Installing collected packages: llvmlite, funcsigs, singledispatch, numba, resampy, mock, opt-einsum, h5py, keras-applications, gast, keras-preprocessing, pyasn1, rsa, cachetools, pyasn1-modules, google-auth, idna, chardet, urllib3, certifi, requests, werkzeug, oauthlib, requests-oauthlib, google-auth-oauthlib, futures, grpcio, absl-py, markdown, tensorboard, backports.weakref, tensorflow-estimator, functools32, astor, termcolor, wrapt, google-pasta, tensorflow, decorator, python-dateutil, pytz, pandas, turicreate
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: /Users/harshavardhanhr/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/setup.py'"'"'; __file__='"'"'/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-record-Tq46YM/install-record.txt --single-version-externally-managed --compile --install-headers /Users/harshavardhanhr/venv/include/site/python2.7/llvmlite
cwd: /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/
Complete output (14 lines):
running install
running build
got version from file /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/llvmlite/_version.py {'version': '0.32.0', 'full': '26059d238f4ba23dff74703dd27168591d889edd'}
running build_ext
/Users/harshavardhanhr/venv/bin/python /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py", line 168, in <module>
main()
File "/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py", line 162, in main
main_posix('osx', '.dylib')
File "/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/ffi/build.py", line 109, in main_posix
"to the path for llvm-config" % (llvm_config,))
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/Users/harshavardhanhr/venv/bin/python' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/harshavardhanhr/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/setup.py'"'"'; __file__='"'"'/private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-install-00VSH7/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8s/14fz39z503n7hqftf_yg1nyr0000gn/T/pip-record-Tq46YM/install-record.txt --single-version-externally-managed --compile --install-headers /Users/harshavardhanhr/venv/include/site/python2.7/llvmlite Check the logs for full command output.
For the second error, you are going to need to install scipy version 1.2.2 specifically.
pip install 'scipy==1.2.2'
Here's the important part of your error, hidden right in the middle
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
This probably means you have to set LLVM_CONFIG in your ~/.bashrc, something like
export LLVM_CONFIG=/usr/local/opt/llvm#9/bin/llvm-config
After doing that, remember to source it
source ~/.bashrc or . ~/.bashrc
I faced the issue with llvmlite when I was trying to install tslearn with python3.9. After so much struggling with different versions and github communities, I came up with the solution to install the llvmlite with python3.8 which works pretty fine. I tried installing using python3.9 and also python2.7 but they probably have some version supporting issues when installing llvmlite.

How to install pyarrow on mac

Created Virtual environment (Python 3.7.0) and tried installing pyarrow:
pip3.7 install --no-cache pyarrow and getting error:
Collecting pyarrow
Downloading https://files.pythonhosted.org/packages/be/2d/11751c477e4e7f4bb07ac7584aafabe0d0608c170e4bff67246d695ebdbe/pyarrow-0.9.0.tar.gz (8.5MB)
100% |████████████████████████████████| 8.5MB 383kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xy/b__x_l9n1kl9_llyngq1cvddqsd9bn/T/pip-install-3p7vvogb/pyarrow/setup.py", line 29, in <module>
from Cython.Distutils import build_ext as _build_ext
ModuleNotFoundError: No module named 'Cython'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/xy/b__x_l9n1kl9_llyngq1cvddqsd9bn/T/pip-install-3p7vvogb/pyarrow/
Tried installing Cython and running again pip3.7 install --no-cache pyarrow, this time got different error at the end:
Command "/Users/myuser/python/venv/p3/bin/python3 -u -c
"import setuptools, tokenize;__file__=
'/private/var/folders/xy/b__x_l9n1kl9_llyngq1cvddqsd9bn/T/pip-install-3a5y_ug4/pyarrow/setup.py';
f=getattr(tokenize, 'open', open)(__file__);
code=f.read().replace('\r\n', '\n');f.close();
exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/xy/b__x_l9n1kl9_llyngq1cvddqsd9bn/T/pip-record-tw4inr9f/install-record.txt
--single-version-externally-managed --compile --install-headers /Users/myuser/python/venv/p3/include/site/python3.7/pyarrow"
failed with error code 1 in /private/var/folders/xy/b__x_l9n1kl9_llyngq1cvddqsd9bn/T/pip-install-3a5y_ug4/pyarrow/
Pyarrow currently doesn't support python 3.7. They are working on it.

Is there a way to specify requirements installation order in pip?

I am troubleshooting an issue where some dependencies are not downloaded in the correct order and they fail. Below is the output I get when we try to build and deploy to Bluemix. Numpy is defined before but installs after scipy.
Running setup.py install for blinker
Running setup.py install for MongoKit
Running setup.py install for Flask-Mail
Running setup.py install for Flask-HTTPAuth
Running setup.py install for passlib
Running setup.py install for Werkzeug
Running setup.py install for SQLAlchemy
Running setup.py install for scipy
Complete output from command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-n4PVQ_/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8q5cRa-record/install-record.txt --single-version-externally-managed --compile:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-n4PVQ_/scipy/setup.py", line 237, in <module>
setup_package()
File "/tmp/pip-build-n4PVQ_/scipy/setup.py", line 225, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
----------------------------------------
Command "/app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-n4PVQ_/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8q5cRa-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-n4PVQ_/scipy
Staging failed: Buildpack compilation step failed

Error building uwsgi with pip in virtual environment

I am getting errors when I try to install uwsgi in my virtual environment in my Centos VPS. Ultimately, I cannot install uwsgi.
I am using :
pip install uwsgi
and also :
pathtovirtualenv/bin/pip install uwsgi
I get the following output on the terminal:
wwwthecanonworks#thecanonworks.com [~]# ~/thecanonworks/env/bin/pip install uwsgi
Downloading/unpacking uwsgi
Downloading uwsgi-2.0.8.tar.gz (775kB): 775kB downloaded
Running setup.py (path:/home/wwwthecanonworks/thecanonworks/env/build/uwsgi/setup.py) egg_info for package uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Complete output from command /home/wwwthecanonworks/thecanonworks/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/wwwthecanonworks/thecanonworks/env/build/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RY9JuM-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wwwthecanonworks/thecanonworks/env/include/site/python2.7:
running install
----------------------------------------
Cleaning up...
Command /home/wwwthecanonworks/thecanonworks/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/wwwthecanonworks/thecanonworks/env/build/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RY9JuM-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wwwthecanonworks/thecanonworks/env/include/site/python2.7 failed with error code 1 in /home/wwwthecanonworks/thecanonworks/env/build/uwsgi
Storing debug log for failure in /home/wwwthecanonworks/.pip/pip.log
Here is the pip log output:
Skipping http://projects.unbit.it/downloads/uwsgi-1.2.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.3.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.1.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.10.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.2.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.3.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.4.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.5.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.6.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.7.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.8.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping http://projects.unbit.it/downloads/uwsgi-1.4.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
Skipping link http://projects.unbit.it/uwsgi/ (from https://pypi.python.org/simple/uwsgi/); not a file
Using version 2.0.8 (newest of versions: 2.0.8, 2.0.7, 2.0.6, 2.0.5.1, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0, 1.9.21.1, 1.9.21, 1.9.20, 1.9.19, 1.9.18.2, 1.9.18.1, 1.9.18, 1.9.17.1, 1.9.17, 1.9.16, 1.9.15, 1.9.14, 1.9.13, 1.9.12, 1$
Downloading from URL https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.8.tar.gz#md5=356b71060aa4c1f0e888dbca03567bd5 (from https://pypi.python.org/simple/uwsgi/)
Running setup.py (path:/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py) egg_info for package uwsgi
running egg_info
creating pip-egg-info/uWSGI.egg-info
writing pip-egg-info/uWSGI.egg-info/PKG-INFO
writing top-level names to pip-egg-info/uWSGI.egg-info/top_level.txt
writing dependency_links to pip-egg-info/uWSGI.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
Source in /tmp/pip_build_wwwthecanonworks/uwsgi has version 2.0.8, which satisfies requirement uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Running command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exe$
running install
Complete output from command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _$
running install
----------------------------------------
Cleaning up...
Removing temporary dir /tmp/pip_build_wwwthecanonworks...
Command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" instal$
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/wwwthecanonworks/thecanonworks2/thecanonworks/env/build/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lmaN7I-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/include/site/python2.7 failed with error code 1 in /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/build/uwsgi
here is my virtualenv bin directory :
wwwthecanonworks#thecanonworks.com [~/thecanonworks/env]# ls
./ ../ bin/ include/ lib/
wwwthecanonworks#thecanonworks.com [~/thecanonworks/env]# cd bin
wwwthecanonworks#thecanonworks.com [~/thecanonworks/env/bin]# ls
./ ../ activate activate.csh activate.fish activate_this.py easy_install* easy_install-2.7* pip* pip2* pip2.7* python# python2# python2.7*
update:
I have tried a number of different things and still can't get uwsgi installed.
Try to install the following packages before installing uwsgi:
sudo apt-get -y install build-essential python-dev zlib1g-dev libssl-dev
On CentOS 6.4 I had to install dev tools first:
yum groupinstall "Development Tools"

Django deployment issue on Heroku with exact clone of running app: PUSH REJECTED ERROR

I have a Django app on Heroku. I set up another app on the same Heroku account.
Now I want another instance of the first app.
I just cloned the first app and pushed into the newly created app, but it's not working.
Got this error when doing git push heroku master
Running setup.py install for distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg
Egg installation
Patching...
Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg.OLD.1394782343.31
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
Complete output from command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u57096/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TYqPAN-record/install-record.txt --single-version-externally-managed --compile:
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg
Egg installation
Patching...
Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg.OLD.1394782343.31
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
----------------------------------------
Cleaning up...
Command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u57096/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TYqPAN-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_u57096/distribute
Storing debug log for failure in /app/.pip/pip.log
! Push rejected, failed to compile Python app
To git#heroku.com:gentle-plateau-6569.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:gentle-plateau-6569.git'
my requirements.txt file is
Django==1.4
South==0.7.5
boto==2.5.2
distribute==0.6.27
dj-database-url==0.2.1
django-debug-toolbar==0.9.4
django-flash==1.8
django-mailgun==0.2.1
django-registration==0.8
django-session-security==2.0.3
django-sslify==0.2
django-storages==1.1.5
gunicorn==0.14.6
ipdb==0.7
ipython==0.13
newrelic==1.6.0.13
psycopg2==2.4.5
raven==2.0.3
requests==0.13.6
simplejson==2.4.0
wsgiref==0.1.2
xlrd==0.7.9
xlwt==0.7.4
please help me to get rid of this
This appears to be related to an issue here.
In other words, distribute has been deprecated and is being replaced with setuptools. Try replacing the line distribute==0.6.27 with setuptools>=0.7 as per the recommendation in the link.
virtualenv is a tool to create isolated Python environments.
you will need to add the following to fix command python setup.py egg_info failed with error code 1, so inside your requirements.txt add this:
virtualenv==12.0.7

Categories

Resources