首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku上的PyGreSQL

Heroku上的PyGreSQL
EN

Stack Overflow用户
提问于 2012-06-23 11:50:33
回答 1查看 202关注 0票数 0

是Heroku不支持PyGreSQL,还是我在requirements.txt文件中做错了什么?

代码语言:javascript
复制
web.py==0.36
PyGreSQL

当我在本地运行pip时,一切安装正常。当我尝试部署时,我收到以下错误消息。

代码语言:javascript
复制
-----> 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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-07-06 09:29:54

PyGreSQL库目前不支持Heroku9.1,因此与PostgreSQL不兼容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11166681

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档