Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Upload - Could not find a version that satisfies the requirement anaconda-client==1.4.0

I'm trying to push a Django app onto Heroku, but am getting the following error upon running git push heroku master:

Counting objects: 80, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (80/80), 990.21 KiB | 0 bytes/s, done.
Total 80 (delta 20), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Python app detected
remote:  !     The latest version of Python 2 is python-2.7.14 (you are using 
python-2.7.12, which is unsupported).
remote:  !     We recommend upgrading by specifying the latest version 
(python-2.7.14).
remote:        Learn More: https://devcenter.heroku.com/articles/python-
runtimes
remote: -----> Installing python-2.7.12
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote:        Collecting alabaster==0.7.7 (from -r 
/tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 1))
remote:          Downloading alabaster-0.7.7-py2.py3-none-any.whl
remote:        Collecting anaconda-client==1.4.0 (from -r 
/tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 2))
remote:          Could not find a version that satisfies the requirement 
anaconda-client==1.4.0 (from -r 
/tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 2)) (from 
versions: 1.1.1, 1.2.2)
remote:        No matching distribution found for anaconda-client==1.4.0 (from 
-r /tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 2))
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to demo-freshstart.

Seems like it has something to do with Anaconda, but I see Anaconda pretty early on in my requirements.txt, so thinking it could just be the first thing it's getting caught up on for some other reason.

like image 417
user3294779 Avatar asked Nov 15 '17 09:11

user3294779


1 Answers

The error is possibly caused by the fact that Anaconda libraries have changed and the version 1.4.0 and the others have been removed, so that they no longer exist.

Some of these are:

anaconda-client==1.7.2
anaconda-navigator==1.9.7
anaconda-project==0.8.2
blaze==0.11.3    
clyent==1.2.2    
conda==4.9.2
conda-build==3.20.5
conda-package-handling==1.3.11
...

(==removed versions)

Try to fix the problem by just updating all the libraries in your environment:

conda update -n base conda
conda update --all

then

pip freeze>requirements.txt
git add .
git commit -m "something"
git push heroku master
like image 164
Tms91 Avatar answered Sep 21 '22 13:09

Tms91