Skip to content

ExecutableMissingException #1031

@trymzet

Description

@trymzet

Hi, I followed the installation and getting started instructions, but I'm getting below error:

pytest_postgresql.exceptions.ExecutableMissingException: Could not found /usr/lib/postgresql/17/bin/pg_ctl. Is PostgreSQL server installed? Alternatively pg_config installed might be from different version that postgresql-server.

Here are the exact steps I executed:

pip install pytest-postgresql
pip install "psycopg[binary]"

After testing the code (postgresql_proc = factories.postgresql_proc()) and getting Permission denied: 'pg_config', I found in some issue that I should install libpq-dev as well, so the next step was:

sudo apt install libpq-dev

However, now I'm getting the error described in the issue, so I'm probably missing some more installation/configuration steps?

I saw someone getting a similar error, but they were running a Docker container with PostgreSQL and connecting to that, whereas I wanted to let the lib create and manage the instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageGathering informations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions