Title: ModuleNotFoundError: No module named '_ctypes'
Type: compile error Stage:
Components: ctypes Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alhelal, terry.reedy
Priority: normal Keywords:

Created on 2020-02-23 13:55 by alhelal, last changed 2020-02-29 00:09 by terry.reedy.

Messages (2)
msg362511 - (view) Author: Md. Al-Helal (alhelal) Date: 2020-02-23 13:55
ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-68ypuk30/django-tables2/'"'"'; __file__='"'"'/tmp/pip-install-68ypuk30/django-tables2/'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-68ypuk30/django-tables2/pip-egg-info
         cwd: /tmp/pip-install-68ypuk30/django-tables2/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/local/lib/python3.8/site-packages/setuptools/", line 20, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/local/lib/python3.8/site-packages/setuptools/", line 35, in <module>
        from setuptools import windows_support
      File "/usr/local/lib/python3.8/site-packages/setuptools/", line 2, in <module>
        import ctypes
      File "/usr/local/lib/python3.8/ctypes/", line 7, in <module>
        from _ctypes import Union, Structure, Array
    ModuleNotFoundError: No module named '_ctypes'
ERROR: Command errored out with exit status 1: python egg_info Check the logs for full command output.
msg362946 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-02-29 00:09
This does not look like a bug in cpython; if is it not, it should be closed.  Please ask for help on python-list or another forum that covers installation issues.  Or maybe look for a pip user list.
Date User Action Args
2020-02-29 00:09:46terry.reedysetnosy: + terry.reedy
messages: + msg362946
2020-02-23 13:55:42alhelalcreate