Importing psycopg2 (installed via pip) reports: ImportError: /opt/hostedtoolcache/.../3.13.0-alpha.6/.../psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get #848
Labels
bug
Something isn't working
Description:
Running 3.13-alpha.6, I install psycopg2 using
pip install
. When my program does animport psycopg2
,I get the error:
Action version:
Platform:
Runner type:
Tools version:
Python: 3.13-alpha.6
psycopg2: 2.9.9
Ubuntu: 22.04 runner (latest)
This same workflow works fine on 3.6->3.12.
Repro steps:
As far as I can tell this minimal test case should reproduce it:
pip install psycopg2
import psycopg2
I can't get a shell inside a runner to test however so...
See https://github.com/roundup-tracker/roundup/actions/runs/8767065771/job/24059915708 for a full run including the error.
Expected behavior:
I expect the import to succeed without an ImportError.
Actual behavior:
The import fails with an ImportError:
See https://github.com/roundup-tracker/roundup/actions/runs/8767065771/job/24059915708 for a full run including the error.
Thanks for any help/ideas on how to debug.
-- rouilj
The text was updated successfully, but these errors were encountered: