[GH-ISSUE #103] Issue with psycopg2 install on upgrade #69

Closed
opened 2026-02-25 23:41:03 +03:00 by kerem · 2 comments
Owner

Originally created by @stevenmcastano on GitHub (Dec 6, 2016).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/103

I tried to do a "git pull" and do an upgrade today, which I finally managed to get working, but I'm getting this error when trying to do a "pip install -r requirements.txt":

 Downloading psycopg2-2.6.2.tar.gz (376kB)
    100% |████████████████████████████████| 378kB 2.5MB/s
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    Error: pg_config executable not found.

    Please add the directory containing pg_config to the PATH
    or specify the full executable path with the option:

        python setup.py build_ext --pg-config /path/to/pg_config build ...

    or with the pg_config option in 'setup.cfg'.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-et5hSb/psycopg2/

Just to make sure all the details are in here this is:

python v2.7.6
pip 9.0.1
ubuntu 14.04.5 (kernel 3.13.0.103-generic)

I was able to comment out that package from the requirements.txt and get through the install and do the migration and things are back up and running again. I'm just wondering what's missing and what I can do to resolve it?

Originally created by @stevenmcastano on GitHub (Dec 6, 2016). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/103 I tried to do a "git pull" and do an upgrade today, which I finally managed to get working, but I'm getting this error when trying to do a "pip install -r requirements.txt": ``` Downloading psycopg2-2.6.2.tar.gz (376kB) 100% |████████████████████████████████| 378kB 2.5MB/s Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info/psycopg2.egg-info writing pip-egg-info/psycopg2.egg-info/PKG-INFO writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-et5hSb/psycopg2/ ``` Just to make sure all the details are in here this is: python v2.7.6 pip 9.0.1 ubuntu 14.04.5 (kernel 3.13.0.103-generic) I was able to comment out that package from the requirements.txt and get through the install and do the migration and things are back up and running again. I'm just wondering what's missing and what I can do to resolve it?
kerem closed this issue 2026-02-25 23:41:03 +03:00
Author
Owner

@cuu508 commented on GitHub (Dec 13, 2016):

psycopg2 is the Python library for accessing PostgreSQL database. If you're using MySQL or MariaDB then you don't need it -- you can indeed safely comment it out and it will not affect anything.

On Ubuntu you can install psycopg2 system-wide with apt-get install python-psycopg2 or apt-get install python3-psycopg2. If you install with pip inside a virtualenv, you need to have a few -dev packages -- apt-get install build-essential libpq-dev (IIRC)

<!-- gh-comment-id:266840676 --> @cuu508 commented on GitHub (Dec 13, 2016): psycopg2 is the Python library for accessing PostgreSQL database. If you're using MySQL or MariaDB then you don't need it -- you can indeed safely comment it out and it will not affect anything. On Ubuntu you can install psycopg2 system-wide with `apt-get install python-psycopg2` or `apt-get install python3-psycopg2`. If you install with pip inside a virtualenv, you need to have a few -dev packages -- `apt-get install build-essential libpq-dev` (IIRC)
Author
Owner

@stevenmcastano commented on GitHub (Dec 13, 2016):

Ah ok, that makes sense. As long as it’s not buried in the code somewhere where it will cause a problem, I’ll just leave it commented out as I am using MariaDB.

Thanks!

On Dec 13, 2016, at 2:43 PM, Pēteris Caune notifications@github.com wrote:

psycopg2 is the Python library for accessing PostgreSQL database. If you're using MySQL or MariaDB then you don't need it -- you can indeed safely comment it out and it will not affect anything.

On Ubuntu you can install psycopg2 system-wide with apt-get install python-psycopg2 or apt-get install python3-psycopg2. If you install with pip inside a virtualenv, you need to have a few -dev packages -- apt-get install build-essential libpq-dev (IIRC)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/healthchecks/healthchecks/issues/103#issuecomment-266840676, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4rNNVeHZX3s_QpTpbUgTaYsmJnr7wuks5rHvVPgaJpZM4LE3ig.

<!-- gh-comment-id:266842345 --> @stevenmcastano commented on GitHub (Dec 13, 2016): Ah ok, that makes sense. As long as it’s not buried in the code somewhere where it will cause a problem, I’ll just leave it commented out as I am using MariaDB. Thanks! > On Dec 13, 2016, at 2:43 PM, Pēteris Caune <notifications@github.com> wrote: > > psycopg2 is the Python library for accessing PostgreSQL database. If you're using MySQL or MariaDB then you don't need it -- you can indeed safely comment it out and it will not affect anything. > > On Ubuntu you can install psycopg2 system-wide with apt-get install python-psycopg2 or apt-get install python3-psycopg2. If you install with pip inside a virtualenv, you need to have a few -dev packages -- apt-get install build-essential libpq-dev (IIRC) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub <https://github.com/healthchecks/healthchecks/issues/103#issuecomment-266840676>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AF4rNNVeHZX3s_QpTpbUgTaYsmJnr7wuks5rHvVPgaJpZM4LE3ig>. >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#69
No description provided.