Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExecutableMissingException #1031

Open
trymzet opened this issue Oct 23, 2024 · 1 comment
Open

ExecutableMissingException #1031

trymzet opened this issue Oct 23, 2024 · 1 comment

Comments

@trymzet
Copy link

trymzet commented Oct 23, 2024

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.

@fizyk
Copy link
Member

fizyk commented Oct 24, 2024

@trymzet do you have a Postgresql server installed, or do you plan to use dockerised postresql?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants