Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:28:40+00:00 2026-06-07T03:28:40+00:00

Is PyGreSQL unsupported on Heroku, or am I doing something wrong in my requirements.txt

  • 0

Is PyGreSQL unsupported on Heroku, or am I doing something wrong in my requirements.txt file?

web.py==0.36
PyGreSQL

When I run pip locally, everything installs fine. When I try to deploy, I get the following error message.

-----> 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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:28:42+00:00Added an answer on June 7, 2026 at 3:28 am

    The PyGreSQL library does not support PostgreSQL 9.1 at the moment, and therefore is incompatible with Heroku.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PyGreSQL to access my DB. In the use-case I'm currently working on;
I've seen a number of postgresql modules for python like pygresql, pypgsql, psyco. Most
What's the best way to make psycopg2 pass parameterized queries to PostgreSQL? I don't
Is there an easy way to tell if a Python package will work if
We are in the process of upgrading from PostgreSQL 8.3 to PostgreSQL 8.4, in
I searched but didn't find the answer why I got error on installation: $

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.