2014-04-10 4 views
4

실패 PIP, 그것은 장고 - 관리자 - 도구를 위해 내가 푸시 명령을 실행하면Heroku가 설치 내가 Heroku가에 장고 응용 프로그램을 배포하려면 노력하고 있어요

Heroku가가를 설치할 수 없습니다 당신이 requirements.txt 위에서 볼 수 있듯이 dependes 패키지,하지만 난 그것을 pypi

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

어떤 도움에서 볼?

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 

푸시

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 

것은 내가 핍 장고 - 관리자 - 도구 작동 내 컴퓨터에서 == 0.5.1하지만 계속 설치를 실행하는 경우 Heroku에 푸시하려고하면 오류가 표시됩니다.

+0

컴퓨터의 핍 버전은 무엇입니까? –

+0

pypa/pip # 1423 이후 더 이상 기본적으로 Py391에서 호스팅되지 않는 패키지를 설치할 수 없습니다. –

답변

4

아마도 당신은 지역 공동 헤로 쿠는 새로운 버전의 pip를 사용하고 있습니다.

django-admin-tools == 0.5.1은 bitbucket에서 호스팅됩니다. pip는 더 이상 기본적으로 PyPI 자체에서 호스팅되지 않는 패키지를 설치할 수 없습니다. 그래서 설치가 실패했습니다.

requirements.txt에 다음 내용을 추가하면 문제가 해결됩니다.

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

참고 :

Forced use of --allow-external and --allow-unverified very inconvenient and not very intuitive #1423

+0

나는 이것을 시도했지만 (PIL과 함께) 오류가 계속 발생합니다 : 일부 안전하지 않은 파일과 검증 할 수없는 파일이 무시되었습니다 --allow-unverified PIL을 사용하여 허용). 정리 중 ... PIL == 1.1.7 (-r requirements.txt (2 행)부터) 에서 실패에 대한 디버그 로그 저장 중 배포판을 찾을 수 없습니다. 푸시가 거부되었거나 Python 응용 프로그램을 컴파일하지 못했습니다. 그 밖의 무엇을 할 수 있습니까? –

+1

광란적인 검색 30 시간 후 나는 마침내 당신의 대답을 발견했다 - 나는 당신에게 하나 이상의 upvote를 줄 수 있었으면 좋겠다! (와이) –

관련 문제