You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: psycopg package requires libpq library installed and running targets potentially work if libpq is installed in the system root FS and not hermetic. Sandboxed test targets fail with message
.../psycopg/psycopg/pq/__init__.py", line 106, in import_from_libpq
raise ImportError(
ImportError: 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
Use case: psycopg package requires libpq library installed and running targets potentially work if libpq is installed in the system root FS and not hermetic. Sandboxed test targets fail with message
The suggested workaround in bazelbuild/rules_python#1348 to use
psycopg2-binary
is not recommended as mentioned in https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binaryThe text was updated successfully, but these errors were encountered: