-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Description
Describe the bug
When running cocoindex setup main.py, it return an error stating:
Error: Failed importing file '/home/ayaghi/cocoindex/examples/fastapi_server_docker/main.py': no pq wrapper available.
Attempts made:
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
- couldn't import psycopg 'python' implementation: libpq library not found
To Reproduce
SETUP: Run pg17 docker on the correct port.
- Go to the example dir:
cd examples/fastapi_server_docker - Create a virtual env:
uv venv - Activate the virtual env:
source .venv/bin/activate - Install requirements:
uv pip install -r requirments.txt - Run:
cocoindex setup main.py
Expected behavior
Data getting indexed.
CocoIndex Version
Latest: 0.1.44
Additional context
- The same does not happen when running from docker. Meaning it runs successfully when running from Docker.
- Running from WSL 2 on Ubuntu
Metadata
Metadata
Assignees
Labels
No labels