2012-06-23 6 views
0

PyGreSQL이 Heroku에서 지원되지 않습니까? 아니면 내 requirements.txt 파일에서 잘못 되었습니까?PyGreSQL on Heroku

web.py==0.36 
PyGreSQL 

로컬로 pip를 실행하면 모든 것이 잘 설치됩니다. 배포하려고하면 다음 오류 메시지가 나타납니다.

-----> Installing dependencies using pip version 1.0.2 
    Requirement already satisfied (use --upgrade to upgrade): web.py==0.36 in ./.heroku/venv/lib/python2.7/site-packages (from -r requirements.txt (line 1)) 
    Downloading/unpacking PyGreSQL (from -r requirements.txt (line 2)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FP%2FPyGreSQL%2FPyGreSQL-4.0.tar.gz 
    Running setup.py egg_info for package PyGreSQL 
     Traceback (most recent call last): 
     File "<string>", line 14, in <module> 
     File "/tmp/build_35fg1nd48mese/.heroku/venv/build/PyGreSQL/setup.py", line 98, in <module> 
      mk_include() 
     File "/tmp/build_35fg1nd48mese/.heroku/venv/build/PyGreSQL/setup.py", line 69, in mk_include 
      for f in os.listdir(pg_include_dir_server): 
     OSError: [Errno 2] No such file or directory: '/usr/include/postgresql/8.4/server' 
     Complete output from command python setup.py egg_info: 
     Traceback (most recent call last): 

    File "<string>", line 14, in <module> 

    File "/tmp/build_35fg1nd48mese/.heroku/venv/build/PyGreSQL/setup.py", line 98, in <module> 

     mk_include() 

    File "/tmp/build_35fg1nd48mese/.heroku/venv/build/PyGreSQL/setup.py", line 69, in mk_include 

     for f in os.listdir(pg_include_dir_server): 

    OSError: [Errno 2] No such file or directory: '/usr/include/postgresql/8.4/server' 

    ---------------------------------------- 
    Command python setup.py egg_info failed with error code 1 
    Storing complete log in /app/.pip/pip.log 
!  Heroku push rejected, failed to compile Python app 

답변

0

PyGreSQL 라이브러리는 현재 PostgreSQL 9.1을 지원하지 않으므로 Heroku와 호환되지 않습니다.

+0

이 정보는 매우 오래된 것입니다. 제발, 당신의 대답을 업데이트하십시오. – Leva7