Heroku installation failure

I am trying to deploy a django application in Heroku, it depends on django-admin-tools, as you can see above in the requirements file. txt

When I run the push command, Heroku cannot install the package, but I see it in pypi

https://pypi.python.org/pypi/django-admin-tools

Any help?

requirements.txt

MySQL-python==1.2.3
Django==1.6.2
simple-db-migrate==2.0.0
django-debug-toolbar==1.0.1
django-admin-tools==0.5.1
dj-database-url==0.2.2
dj-static==0.0.5
static==0.4

push

    git push heroku master







  Fetching repository, done.
    Counting objects: 8, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (6/6), done.
    Writing objects: 100% (6/6), 623 bytes, done.
    Total 6 (delta 4), reused 0 (delta 0)

    -----> Python app detected
    -----> No runtime.txt provided; assuming python-2.7.6.
    -----> Using Python runtime (python-2.7.6)
    -----> Installing dependencies using Pip (1.5.4)
           Downloading/unpacking django-admin-tools==0.5.1 (from -r requirements.txt (line 7))
             http://bitbucket.org/izi/django-admin-tools/0.5.1 uses an insecure transport scheme (http). Consider using https if bitbucket.org has it available
             http://bitbucket.org/izi/django-admin-tools/ uses an insecure transport scheme (http). Consider using https if bitbucket.org has it available
         Could not find any downloads that satisfy the requirement django-admin-tools==0.5.1 (from -r requirements.txt (line 7))
       Cleaning up...
       No distributions at all found for django-admin-tools==0.5.1 (from -r requirements.txt (line 7))
       Storing debug log for failure in /app/.pip/pip.log

 !     Push rejected, failed to compile Python app

if I run pip install django-admin-tools == 0.5.1 in my machine, it works, but it keeps showing me an error when I try to click on Heroku

+4
source share
1 answer

You are probably using an older version of pip on your local machine, while Heroku is using the newer version of pip.

django-admin-tools == 0.5.1 . pip , PyPI. , .

: . txt .

--allow-unverified django-admin-tools
django-admin-tools==0.5.1

:

--allow-external -allow-notverified # 1423

+4

Source: https://habr.com/ru/post/1535851/


All Articles