Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named '_ctypes' #19

Open
fretif opened this issue Jun 10, 2022 · 1 comment
Open

ModuleNotFoundError: No module named '_ctypes' #19

fretif opened this issue Jun 10, 2022 · 1 comment

Comments

@fretif
Copy link
Member

fretif commented Jun 10, 2022

I am trying to install SPUD on a cluster environment and I got the error below :

[ INFO ] Install meson 0.58.1 (Python tool)
Traceback (most recent call last):
File "setup.py", line 23, in
from setuptools import setup
File "/home/xxxxx/softs/python-modules/gcc93/lib/python3.7/site-packages/setuptools-57.0.0-py3.7.egg/setuptools/init.py", line 18, in
from setuptools.dist import Distribution
File "/home/xxxxx/softs/python-modules/gcc93/lib/python3.7/site-packages/setuptools-57.0.0-py3.7.egg/setuptools/dist.py", line 38, in
from setuptools import windows_support
File "/home/xxxxx/softs/python-modules/gcc93/lib/python3.7/site-packages/setuptools-57.0.0-py3.7.egg/setuptools/windows_support.py", line 2, in
import ctypes
File "/home/xxxx/softs/python/gcc93/3.7/lib/python3.7/ctypes/init.py", line 7, in
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
[ ABORT ] Abort with status error 1

@fretif
Copy link
Member Author

fretif commented Jun 10, 2022

This is a common error on Python compilation when the headers package libffi are missing. You have to ask your system administrator to install the package libffi-devel (for a CentOS distribution).
Then, you have to reinstall Python with the argument --force-reinstall=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant