Python PIP filequeue installation error - python-2.7

I am trying to install a list of packages using a requirements file with PIP in a python virtual environment on Windows.
Halfway thru the list I get the following error. Can someone let me know what the error is ?
(nsr) c:\Users\axxxan\Desktop\Temp>pip install -r requirements.txt
Collecting appdirs==1.4.3 (from -r requirements.txt (line 1))
Using cached appdirs-1.4.3-py2.py3-none-any.whl
Collecting asn1crypto==0.22.0 (from -r requirements.txt (line 2))
Using cached asn1crypto-0.22.0-py2.py3-none-any.whl
Collecting backports-abc==0.5 (from -r requirements.txt (line 3))
Using cached backports_abc-0.5-py2.py3-none-any.whl
Collecting beautifulsoup4==4.6.0 (from -r requirements.txt (line 4))
Using cached beautifulsoup4-4.6.0-py2-none-any.whl
Collecting behave==1.2.5 (from -r requirements.txt (line 5))
Using cached behave-1.2.5-py2.py3-none-any.whl
Collecting boto==2.46.1 (from -r requirements.txt (line 6))
Using cached boto-2.46.1-py2.py3-none-any.whl
Collecting cachetools==2.0.0 (from -r requirements.txt (line 7))
Using cached cachetools-2.0.0-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r requirements.txt (line 8))
Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting cffi==1.10.0 (from -r requirements.txt (line 9))
Using cached cffi-1.10.0-cp27-cp27m-win_amd64.whl
Collecting chardet==3.0.2 (from -r requirements.txt (line 10))
Using cached chardet-3.0.2-py2.py3-none-any.whl
Requirement already satisfied: click==6.7 in c:\users\axxxan\envs\nsr\lib\site-packages (from -r requirements.txt (line 11))
Collecting cryptography==1.8.1 (from -r requirements.txt (line 12))
Using cached cryptography-1.8.1-cp27-cp27m-win_amd64.whl
Collecting dill==0.2.6 (from -r requirements.txt (line 13))
Using cached dill-0.2.6.zip
Obtaining dp_workflow from git+https://source.developers.google.com/p/txxx-data-lake-core-dev/r/nxx-dp#c6d58a36a3d5bed58333d5057633b789a99a6530#egg=dp_workflow (from -r requirements.txt (line 14))
Skipping because already up-to-date.
Collecting enum34==1.1.6 (from -r requirements.txt (line 15))
Using cached enum34-1.1.6-py2-none-any.whl
Collecting filequeue==0.3.1 (from -r requirements.txt (line 16))
Using cached filequeue-0.3.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\axxxan\appdata\local\temp\pip-build-jqwnqf\filequeue\setup.py", line 16, in <module>
long_description = "\n\n".join((read("README.rst"), read("CHANGES.rst"))),
File "c:\users\axxxan\appdata\local\temp\pip-build-jqwnqf\filequeue\setup.py", line 6, in read
return open(os.path.join(os.path.dirname(__file__), fname)).read()
IOError: [Errno 2] No such file or directory: 'c:\\users\\axxxan\\appdata\\local\\temp\\pip-build-jqwnqf\\filequeue\\CHANGES.rst'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\axxxan\appdata\local\temp\pip-build-jqwnqf\filequeue\

Filequeue is missing the CHANGES.rst in its tar file on PyPI. This causes pip to fall over, since the setup.py requires CHANGES.rst (indirectly only).
Given the date of the last update in Jan 2013, a fix may be some time away. A simple workaround is as follows:
pip install git+https://github.com/GP89/FileQueue.git
before you install any of the other packages that depend on it.
Then, during the installation of other packages that require filequeue, pip should find it already installed and skip to the next package to install.
Note: a recent fix has solved this problem, and filequeue 0.3.2 should install without problems using pip.

Related

Error greenlet docker build

everything good? I have a problem using docker build. This application has already been mounted on 2 other machines but every time this error occurs. Does anyone know what I should do to fix it. I have a windows 10 and im using Docker Toolbox.
I tried this answer here from the site without success:
Python module installation error: command 'gcc' failed with exit status 1
I followed the docking tutorial from docker's own website:
https://docs.docker.com/compose/django/#define-the-project-components
Dockerfile
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
RUN pip3 install virtualenv
RUN virtualenv /code
ADD requirements.txt /code/
RUN python -m pip install -r requirements.txt --no-cache-dir
ADD . /code/
Error log:
PS C:\Users\ThinkPad\Documents\ChatBot> docker build -t backend .
Sending build context to Docker daemon 209.5MB
Step 1/9 : FROM python:3
---> ce54ff8f2af6
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 5cefadc9e069
Step 3/9 : RUN mkdir /code
---> Using cache
---> 1dd0287bc4ba
Step 4/9 : WORKDIR /code
---> Using cache
---> 3790083599e1
Step 5/9 : RUN pip3 install virtualenv
---> Using cache
---> ddc61851cc43
Step 6/9 : RUN virtualenv /code
---> Using cache
---> fa9028959057
Step 7/9 : ADD requirements.txt /code/
---> a4b2b341f4f6
Step 8/9 : RUN python -m pip install -r requirements.txt --no-cache-dir
---> Running in fe0b99a3ecf4
Requirement already satisfied: pip==10.0.1 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (10.0.1)
Collecting amqp==2.2.2 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/88/4a/8c45a882d842678963516ebd9cf584a4ded51af719234c3b696c2e884c60/amqp-2.2.2-py2.py3-none-any.whl (48kB)
Collecting billiard==3.5.0.3 (from -r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/82/55/76f4e786141b7174926cdffa7a155aeea316b729118fb48ec548f3c6754f/billiard-3.5.0.3-py3-none-any.whl (89kB)
Collecting celery==4.1.0 (from -r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/22/9b/88ef5cc7edf5d43215f383ae0a2b1cdeb33f5f07886386c7e4691b2eba0c/celery-4.1.0-py2.py3-none-any.whl (400kB)
Collecting Django==2.0.1 (from -r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/21/2a/3a0ec97b18d6e8d295142228f03604ac78ea6de05cf9bc3773a74f0b58bb/Django-2.0.1-py3-none-any.whl (7.1MB)
Collecting django-cors-headers==2.1.0 (from -r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/10/97/40b519badff93449706cd2cab3f328e1898e627bb218e3429c5581ad1932/django_cors_headers-2.1.0-py2.py3-none-any.whl
Collecting django-notifs==2.6.0 (from -r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/63/30/8b9b90d3aa47b3b50046eb202727730a6d9ba9b4bc45478ba35466e7662c/django-notifs-2.6.0.tar.gz
Collecting django-templated-mail==1.0.0 (from -r requirements.txt (line 8))
Downloading https://files.pythonhosted.org/packages/24/a8/9619c9a6fbe784c5d9c31283aeb2dd16c1f16902485b7c3f578b39ecd21b/django_templated_mail-1.0.0-py3-none-any.whl
Collecting djangorestframework==3.7.7 (from -r requirements.txt (line 9))
Downloading https://files.pythonhosted.org/packages/7c/0f/70957d583a9040c902b22dfab88323c1be61266eaddb1b3463a401004856/djangorestframework-3.7.7-py2.py3-none-any.whl (1.1MB)
Collecting djangorestframework-jwt==1.11.0 (from -r requirements.txt (line 10))
Downloading https://files.pythonhosted.org/packages/2b/cf/b3932ad3261d6332284152a00c3e3a275a653692d318acc6b2e9cf6a1ce3/djangorestframework_jwt-1.11.0-py2.py3-none-any.whlCollecting djoser==1.1.5 (from -r requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/9f/cf/d985a0a453a02c018a68ea69de6c9482bbb345ec85037355601a0023525f/djoser-1.1.5-py3-none-any.whl
Collecting gevent==1.2.2 (from -r requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/1b/92/b111f76e54d2be11375b47b213b56687214f258fd9dae703546d30b837be/gevent-1.2.2.tar.gz (3.1MB)
Collecting greenlet==0.4.12 (from -r requirements.txt (line 13))
Downloading https://files.pythonhosted.org/packages/be/76/82af375d98724054b7e273b5d9369346937324f9bcc20980b45b068ef0b0/greenlet-0.4.12.tar.gz (57kB)
Collecting kombu==4.1.0 (from -r requirements.txt (line 14))
Downloading https://files.pythonhosted.org/packages/62/a4/5d16954803224a1e451713293c2a028614099f5538cf626e1fdd7b438c86/kombu-4.1.0-py2.py3-none-any.whl (181kB)
Collecting pika==0.11.2 (from -r requirements.txt (line 15))
Downloading https://files.pythonhosted.org/packages/76/b4/0ada6918ac79ce4d8d45d0ba436ee21a1ef685047fb1dde4d2de0178b327/pika-0.11.2-py2.py3-none-any.whl (107kB)
Collecting PyJWT==1.6.1 (from -r requirements.txt (line 16))
Downloading https://files.pythonhosted.org/packages/31/8f/19c302aa9a391dd1fbd249362b749021b88d40fb59af0363939a2250afed/PyJWT-1.6.1-py2.py3-none-any.whl
Collecting pytz==2017.3 (from -r requirements.txt (line 17))
Downloading https://files.pythonhosted.org/packages/a3/7f/e7d1acbd433b929168a4fb4182a2ff3c33653717195a26c1de099ad1ef29/pytz-2017.3-py2.py3-none-any.whl (511kB)
Collecting simplejson==3.13.2 (from -r requirements.txt (line 18))
Downloading https://files.pythonhosted.org/packages/0d/3f/3a16847fe5c010110a8f54dd8fe7b091b4e22922def374fe1cce9c1cb7e9/simplejson-3.13.2.tar.gz (79kB)
Collecting six==1.11.0 (from -r requirements.txt (line 19))
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting uwsgi==2.0.15 (from -r requirements.txt (line 20))
Downloading https://files.pythonhosted.org/packages/bb/0a/45e5aa80dc135889594bb371c082d20fb7ee7303b174874c996888cc8511/uwsgi-2.0.15.tar.gz (795kB)
Collecting vine==1.1.4 (from -r requirements.txt (line 21))
Downloading https://files.pythonhosted.org/packages/10/50/5b1ebe42843c19f35edb15022ecae339fbec6db5b241a7a13c924dabf2a3/vine-1.1.4-py2.py3-none-any.whl
Collecting psycopg2-binary==2.7.4 (from -r requirements.txt (line 22))
Downloading https://files.pythonhosted.org/packages/77/09/4991fcd9a8f4bea1ee3948e1729fa17c184d25bd10809bacc143626361b9/psycopg2-binary-2.7.4.tar.gz (426kB)
Collecting ptvsd==3.2.1 (from -r requirements.txt (line 23))
Downloading https://files.pythonhosted.org/packages/37/44/6dedb2ef160c72c46c4575885bb9d2d6c464202915c14312d02fad0b9c70/ptvsd-3.2.1-py2.py3-none-any.whl (59kB)
Installing collected packages: vine, amqp, billiard, pytz, kombu, celery, Django, django-cors-headers, pika, six, django-notifs, django-templated-mail, djangorestframework, PyJWT, djangorestframework-jwt, djoser, greenlet, gevent, simplejson, uwsgi, psycopg2-binary, ptvsd
Running setup.py install for django-notifs: started
Running setup.py install for django-notifs: finished with status 'done'
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-g5y1o81k/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-mz7pfy5s/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.7m -c greenlet.c -o build/temp.linux-x86_64-3.7/greenlet.o
greenlet.c: In function ‘g_switchstack’:
greenlet.c:463:29: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
current->exc_type = tstate->exc_type;
^~
greenlet.c:464:30: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
current->exc_value = tstate->exc_value;
^~
greenlet.c:465:34: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
current->exc_traceback = tstate->exc_traceback;
^~
greenlet.c:485:9: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = target->exc_type;
^~
greenlet.c:487:9: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = target->exc_value;
^~
greenlet.c:489:9: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = target->exc_traceback;
^~
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-g5y1o81k/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-mz7pfy5s/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-g5y1o81k/greenlet/
The command '/bin/sh -c python -m pip install -r requirements.txt --no-cache-dir' returned a non-zero code: 1
Although the solution of ClumsyPuffin works well it uses a heavier distribution.
I just fixed this issue by adding the following line in the Dockerfile before installing the requirements.
RUN apk add build-base
build-base is a meta-package that will install the GCC, libc-dev and
binutils packages (amongst others).
https://wiki.alpinelinux.org/wiki/GCC
This is due to a cython incompatability issue with python 3.7 (https://github.com/cython/cython/issues/1978).
Modify your image name as FROM python:3.6-stretch and this should work fine

Heroku not installing psycopg2 from requirements.txt

Solved
In requirements.txt, changed the gunicorn==19.0.0 to gunicorn==18.0.0, and it did the trick. Version 19.0.0 breaks with Python 2.x, and it prevented psycopg2 from installing.
Original question
I have the following in requirements.txt :
Django==1.6.5
South==0.8.4
argparse==1.2.1
dj-database-url==0.3.0
dj-static==0.0.5
django-toolbelt==0.0.1
gunicorn==19.0.0
psycopg2==2.5.2
pystache==0.5.4
static==1.0.2
wsgiref==0.1.2
When I push to Heroku, however, it does not install psycopg2, and doesn't even mention any failure regarding this dependency.
Initializing repository, done.
Counting objects: 1257, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1213/1213), done.
Writing objects: 100% (1257/1257), 504.62 KiB | 376.00 KiB/s, done.
Total 1257 (delta 642), reused 0 (delta 0)
-----> Python app detected
-----> Installing runtime (python-2.7.8)
-----> Installing dependencies with pip
Downloading/unpacking Django==1.6.5 (from -r requirements.txt (line 1))
Downloading/unpacking South==0.8.4 (from -r requirements.txt (line 2))
Downloading/unpacking argparse==1.2.1 (from -r requirements.txt (line 3))
Running setup.py (path:/tmp/pip_build_u3159/argparse/setup.py) egg_info for package argparse
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
Downloading/unpacking dj-database-url==0.3.0 (from -r requirements.txt (line 4))
Downloading dj_database_url-0.3.0-py2.py3-none-any.whl
Downloading/unpacking dj-static==0.0.5 (from -r requirements.txt (line 5))
Downloading dj-static-0.0.5.tar.gz
Running setup.py (path:/tmp/pip_build_u3159/dj-static/setup.py) egg_info for package dj-static
Downloading/unpacking gunicorn==19.0.0 (from -r requirements.txt (line 6))
Running setup.py (path:/tmp/pip_build_u3159/gunicorn/setup.py) egg_info for package gunicorn
Downloading/unpacking pystache==0.5.4 (from -r requirements.txt (line 7))
Running setup.py (path:/tmp/pip_build_u3159/pystache/setup.py) egg_info for package pystache
pystache: using: version '5.4.1' of <module 'setuptools' from '/app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg/setuptools/__init__.pyc'>
Downloading/unpacking static==1.0.2 (from -r requirements.txt (line 8))
Downloading static-1.0.2.tar.gz
Running setup.py (path:/tmp/pip_build_u3159/static/setup.py) egg_info for package static
Installing collected packages: Django, South, argparse, dj-database-url, dj-static, gunicorn, pystache, static
Running setup.py install for argparse
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
Running setup.py install for dj-static
Running setup.py install for gunicorn
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/gaiohttp.py", line 67
yield from self.wsgi.close()
^
SyntaxError: invalid syntax
Installing gunicorn_paster script to /app/.heroku/python/bin
Installing gunicorn script to /app/.heroku/python/bin
Installing gunicorn_django script to /app/.heroku/python/bin
Running setup.py install for pystache
pystache: using: version '5.4.1' of <module 'setuptools' from '/app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg/setuptools/__init__.pyc'>
Installing pystache script to /app/.heroku/python/bin
Installing pystache-test script to /app/.heroku/python/bin
Running setup.py install for static
Installing static script to /app/.heroku/python/bin
Successfully installed Django South argparse dj-database-url dj-static gunicorn pystache static
Cleaning up...
-----> Preparing static assets
Collectstatic configuration error. To debug, run:
$ heroku run python ./manage.py collectstatic --noinput
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 34.7MB
-----> Launching... done, v5
When I try to sync the database, of course, it complains about psycopg2 not being installed.
How can I get Heroku to install the missing dependency? I'll much appreciate any constructive idea.
My database setup, in case it is interesting for the issue:
DATABASES = {}
if ENV_TYPE == 'development':
DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),}
else:
DATABASES['default'] = dj_database_url.config()
Update
There is one SyntaxError mentioned in the report, for gunicorn. Is is possibly braking the installation of psycopg2? I think it should not.
yield from added in Python 3.3.
File "/app/.heroku/python/lib/**python2.7**/site-packages/gunicorn/workers/gaiohttp.py"‌​, line 67
yield from self.wsgi.close()

fixed virtualenvwrapper now setuptools fails on pip install

I just got thru fixing virtualenvwrapper using this page as a guide:
http://www.jongales.com/blog/2012/07/25/fixing-virtualenv-after-installing-mountain-lion/#comment-37964
now when I got to pip install -r requirements.txt to get my Django project working Im failing on setuptools stuff?
anyone have some advices?
MacBook-Pro:staging macbook$ ls
Procfile manage.py settings.py urls.py wsgi.py
local_settings.py medint settings.pyc urls.pyc
local_settings.pyc requirements.txt stuff wiki
macBook-Pro:macbook$ pip install -r requirements.txt
Downloading/unpacking Django==1.4.1 (from -r requirements.txt (line 1))
Downloading Django-1.4.1.tar.gz (7.7MB): 7.7MB downloaded
Running setup.py egg_info for package Django
Downloading/unpacking distribute==0.6.10 (from -r requirements.txt (line 2))
Downloading distribute-0.6.10.tar.gz (389kB): 389kB downloaded
Running setup.py egg_info for package distribute
Downloading/unpacking dj-database-url==0.2.1 (from -r requirements.txt (line 3))
Downloading dj-database-url-0.2.1.tar.gz
Running setup.py egg_info for package dj-database-url
Downloading/unpacking gunicorn==0.14.6 (from -r requirements.txt (line 4))
Downloading gunicorn-0.14.6.tar.gz (219kB): 219kB downloaded
Running setup.py egg_info for package gunicorn
Downloading/unpacking mailsnake==1.6.1 (from -r requirements.txt (line 5))
Downloading mailsnake-1.6.1.tar.gz
Running setup.py egg_info for package mailsnake
file mailsnake.py (for module mailsnake) not found
Downloading/unpacking newrelic==1.5.0.103 (from -r requirements.txt (line 6))
Downloading newrelic-1.5.0.103.tar.gz (186kB): 186kB downloaded
Running setup.py egg_info for package newrelic
Downloading/unpacking psycopg2==2.4.5 (from -r requirements.txt (line 7))
Downloading psycopg2-2.4.5.tar.gz (719kB): 719kB downloaded
Running setup.py egg_info for package psycopg2
no previously-included directories found matching 'doc/src/_build'
Downloading/unpacking requests==0.14.2 (from -r requirements.txt (line 8))
Downloading requests-0.14.2.tar.gz (361kB): 361kB downloaded
Running setup.py egg_info for package requests
warning: no files found matching 'tests/*.'
Downloading/unpacking simplejson==2.6.2 (from -r requirements.txt (line 9))
Downloading simplejson-2.6.2.tar.gz (53kB): 53kB downloaded
Running setup.py egg_info for package simplejson
Requirement already satisfied (use --upgrade to upgrade): wsgiref==0.1.2 in /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7 (from -r requirements.txt (line 10))
Installing collected packages: Django, distribute, dj-database-url, gunicorn, mailsnake, newrelic, psycopg2, requests, simplejson
Running setup.py install for Django
changing mode of build/scripts-2.7/django-admin.py from 644 to 755
changing mode of /Users/tmacbook/Envs/medint2/bin/django-admin.py to 755
Running setup.py install for distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /Users/tmacbook/Envs/medint2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Egg installation
Patching...
Renaming /Users/macbook/Envs/medint2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg into /Users/macbook/Envs/medint2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1356316395.42
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/macbook/Envs/medint2/bin/python -c "import setuptools;__file__='/Users/macbook/Envs/medint2/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/qm/dvrz87yj6px11mw0sxcy88lh0000gn/T/pip-RJZBEP-record/install-record.txt --single-version-externally-managed --install-headers /Users/tmacbook/Envs/medint2/bin/../include/site/python2.7:
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /Users/macbook/Envs/medint2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Egg installation
Patching...
Renaming /Users/macbook/Envs/medint2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg into /Users/macbook/Envs/medint2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1356316395.42
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
----------------------------------------
Command /Users/macbook/Envs/medint2/bin/python -c "import setuptools;__file__='/Users/tmacbook/Envs/medint2/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/qm/dvrz87yj6px11mw0sxcy88lh0000gn/T/pip-RJZBEP-record/install-record.txt --single-version-externally-managed --install-headers /Users/tmacbook/Envs/medint2/bin/../include/site/python2.7 failed with error code 1 in /Users/tmacbook/Envs/medint2/build/distribute
Storing complete log in /Users/tmacbook/.pip/pip.log
upgraded distribute==0.6.32
that seems to fix it.

Django requirements.txt pip for mdbtools

I'm trying to use mdbtools in a django app I have. I've included the following two lines in my requirements.txt file:
mdbtools-dev
mdbtools
but am running into some errors:
....
Requirement already satisfied (use --upgrade to upgrade): stripe in ./lib/python2.7/site-packages (from -r requirements.txt (line 7))
Downloading/unpacking mdbtools-dev (from -r requirements.txt (line 8))
Could not find any downloads that satisfy the requirement mdbtools-dev (from -r requirements.txt (line 8))
No distributions at all found for mdbtools-dev (from -r requirements.txt (line 8))
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python app
I sudo apt-get install both mdbtools and mdbtools-dev without a problem. Does anyone have any idea what's going on?
requirements.txt file is not for general system requirements - it is only for Python libraries that are necessary for your application.
Since there is no Python package called mdbtools, you are getting that error.

django-sha2 not installing on heroku server

Im having problems deploying my django app to heroku
in the first part, heroku's push fails when it could not find any downloads for django-sha2==0.4 , however when i do pip install on my computer locally, it works
hh:djangoherokutest Kinnovate$ git push heroku master
Counting objects: 12, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 958 bytes, done.
Total 10 (delta 7), reused 0 (delta 0)
-----> Heroku receiving push
-----> Python/Django app detected
-----> Preparing virtualenv version 1.7
New python executable in ./bin/python
Installing distribute..............................................................................................................................................................................................done.
Installing pip...............done.
Overwriting ./bin/activate with new content
Overwriting ./bin/activate.fish with new content
Overwriting ./bin/activate.csh with new content
-----> Activating virtualenv
-----> Installing dependencies using pip version 1.0.2
Downloading/unpacking git+https://github.com/django/django.git (from -r requirements.txt (line 4))
Cloning https://github.com/django/django.git to /tmp/pip-Jvyfwt-build
Running setup.py egg_info for package from git+https://github.com/django/django.git
Requirement already satisfied (use --upgrade to upgrade): py-bcrypt==0.2 in ./lib/python2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): ipython==0.12 in ./lib/python2.7/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): Flask==0.8 in ./lib/python2.7/site-packages (from -r requirements.txt (line 3))
Downloading/unpacking psycopg2==2.4.2 (from -r requirements.txt (line 5))
Running setup.py egg_info for package psycopg2
no previously-included directories found matching 'doc/src/_build'
Requested psycopg2==2.4.2 (from -r requirements.txt (line 5)), but installing version 2.4.4
Downloading/unpacking django-sha2==0.4 (from -r requirements.txt (line 6))
Could not find any downloads that satisfy the requirement django-sha2==0.4 (from -r requirements.txt (line 6))
No distributions at all found for django-sha2==0.4 (from -r requirements.txt (line 6))
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python/django app
To git#heroku.com:growing-mountain-9962.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:growing-mountain-9962.git'
hh:djangoherokutest Kinnovate$ pip install django-sha2
Requirement already satisfied (use --upgrade to upgrade): django-sha2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django_sha2-0.4-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): Django>=1.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from django-sha2)
Cleaning up...
how do i fix this?
Try putting
git+https://github.com/fwenzel/django-sha2.git
instead of
django-sha2==0.4
in the requirements.txt. This will link straight to the package.