asdf-python icon indicating copy to clipboard operation
asdf-python copied to clipboard

older pythons and the new libffi in arch linux

Open lakinwecker opened this issue 4 years ago • 3 comments

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.

lakinwecker avatar Dec 24 '21 01:12 lakinwecker

+1 Affects me

twidxuga avatar Jan 25 '22 00:01 twidxuga

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.

moenzuel avatar Sep 04 '22 03:09 moenzuel

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

interdependence avatar Nov 26 '22 19:11 interdependence