GrahamDumpleton / wrapt

A Python module for decorators, wrappers and monkey patching.
BSD 2-Clause "Simplified" License
2.06k stars 231 forks source link

error while installing wrapt #163

Closed jbenes1 closed 3 years ago

jbenes1 commented 4 years ago

System information

OS Platform and Distribution : Ubuntu 20.04
TensorFlow version: 1.15.0
Python version: 3.7.0
Installed using : pip
CUDA/cuDNN version: None
GPU model and memory: CPU

I have problem with installation, here is my log:

ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-igfbuuwu/wrapt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-igfbuuwu/wrapt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-oh46bx9v
         cwd: /tmp/pip-install-igfbuuwu/wrapt/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 23, in <module>
        from setuptools.dist import Distribution
      File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 34, in <module>
        from setuptools import windows_support
      File "/usr/local/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
        import ctypes
      File "/usr/local/lib/python3.7/ctypes/__init__.py", line 7, in <module>
        from _ctypes import Union, Structure, Array
    ModuleNotFoundError: No module named '_ctypes'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
GrahamDumpleton commented 4 years ago

All I can say is that it looks like your self installed Python is broken in some way. Suggest asking on StackOverflow. This is not an issue with wrapt.

GrahamDumpleton commented 3 years ago

Closing this out on assumption that solution was found.