asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
651 stars 56 forks source link

older pythons and the new libffi in arch linux #122

Open lakinwecker opened 2 years ago

lakinwecker commented 2 years ago

I'm not certain if this is something that can be fixed ad part of this project, but the recent versions of libffi in arch linux are not compatible with older versions of python from asdf-python.

For example, version 3.6.14 will segfault if you import ctypes, version 3.7.12 will give you an import error:

ModuleNotFoundError: No module named '_ctypes'

python versions 3.8.12 and 3.9.8 both seem to work. I haven't extensively tested all of the version, but I have tested a few different 3.6.x and 3.7.x versions which all exhibit similar behavior.

Notably, setuptools uses ctypes so this causes strange issues when using a dependency manager like pipenv/poetry to install depdencies.

twidxuga commented 2 years ago

+1 Affects me

moenzuel commented 1 year ago

Came across this on Debian Bullseye and what worked for me was to have asdf uninstall the python version then use apt to install libffi-dev. Then reinstall python with asdf.

interdependence commented 1 year ago

I had the same issue on Fedora. Installing libffi-devel using dnf, then reinstalling the python version using asdf worked for me.