Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-11-03 Thread Adeyemi Deji
Also, i tried psycopg2-binary ànd still add the same error issue but when i updated the Dokerfile, things got normal. On Mon, 31 Oct 2022, 19:51 'Kasper Laudrup' via Django users, < django-users@googlegroups.com> wrote: > On 31/10/2022 19.32, Adeyemi Deji wrote: > > > > Hello, fam! > > > > Found

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-11-01 Thread Adeyemi Deji
Hi, I believe the the binary package is suitable for development and I plan integrating docker in my company's upcoming project, so I needed a package best for production. Thanks kasper On Mon, 31 Oct 2022, 19:51 'Kasper Laudrup' via Django users, < django-users@googlegroups.com> wrote: > On

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread 'Kasper Laudrup' via Django users
On 31/10/2022 19.32, Adeyemi Deji wrote: Hello, fam! Found a solution to the problem. Updated the Dockerfile. Check below Great to hear you figured it out and thanks for sharing. Out of curiosity, any reason why you chose to build the psycopg2 package from source instead of using a

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread Adeyemi Deji
Hello, fam! Found a solution to the problem. Updated the Dockerfile. Check below Thanks, guys... *Dockerfile* FROM python:3.8.3-slim ENV PIP_DISABLE_PIP_VERSION_CHECK=1 ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 WORKDIR /code RUN apt-get update \ && apt-get -y install

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-29 Thread 'Kasper Laudrup' via Django users
On 28/10/2022 12.35, Adeyemi Deji wrote: I have tried this command in Dockerfile: RUN pip install --user psycopg2==2.9.5 I got the command on StackOverflow but still didn't resolve the issue. Seems like you need the postgresql development package or similar to build psycopg2 from source.

Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-28 Thread Adeyemi Deji
Hello Fam! I'm currently going through djangoforprofessional tutorial and I've been trying to resolve an error related to installing psycopg2 for postgres in a docker container. After setting up Dockerfile, requirements.txt, and docker-compose.yml which is shown below, I entered this command: