zdave / openconnect-gp-okta

OpenConnect wrapper which logs into a GlobalProtect gateway, authenticating with Okta
37 stars 27 forks source link

undefined symbol: _PyGen_Send on python 3.10 -- upstream bug in lxml #17

Closed spazm-ma closed 2 years ago

spazm-ma commented 2 years ago

ImportError: [...] /python3.10/site-packages/lxml/etree.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send

lxml is pinned to version 4.6.2 in requirements.txt which does not work with python 3.10.

lxml fixed this bug in 4.6.3

Upgrading to current (4.8.0) worked for me. bumping from 4.6.2 to 4.6.3 would probably be sufficient.

upgrading my virtual environment:

pip install lxml --upgrade
zdave commented 2 years ago

Bumped all the package versions. Working for me now with Python 3.10. Thanks for the report!