-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error: pg_config executable not found while building docker-compose #1281
Comments
Hey there, @Rishabh952008! 👋 I'm here to help you with any bugs or questions you have regarding the repository. Let's squash those bugs together! To resolve the "pg_config executable not found" error when building the Docker Compose setup, you need to ensure that the necessary PostgreSQL development packages are installed. This error typically occurs because the system is missing the Here is how you can resolve this issue:
By installing the PostgreSQL development packages, the |
i have installed postgresql on my windows and added to environment variables but than also dealing with same error. I tried giving path to dockerfile of server and client as well but then another error coming |
To resolve the Here is how you can modify the Dockerfile to include the installation of the PostgreSQL development packages:
For example, if you are using a Debian-based image, you can add the following line to install the necessary packages: RUN apt-get update && apt-get install -y postgresql-server-dev-all Here is a sample modification to the Dockerfile: FROM python:3.9-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
postgresql-server-dev-all
# Set the working directory
WORKDIR /app
# Copy the requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Command to run the application
CMD ["python", "app.py"] After making these changes, rebuild your Docker images: docker-compose build This should resolve the |
System Info
pandasai version: 2.2.10
python version:3.11.5
windows 11 version: 23H2Windows
🐛 Describe the bug
pg_config executable not found error is coming during docker-compose build after forking and cloning repo
I created a virtual env and then ran this command and even due to this error I tried installing pip install psycopg2-binary==2.9.6
and even tried updating in pyproject.toml then also facing same error
The text was updated successfully, but these errors were encountered: