I had to reinstall 'openSuse Leap 15' because of a virus that I couldn't crush.
So, I'm faced with rebuilding my tool set.
I have reinstalled pyenv, (in home directory).
Now have to install python 3.7.0, using pyenv
It seems to be happy for a while, then runs into a problem on the build.
It can't find _ctypes in the library.
I thought I could go to github, find the module and manually add it, but that's not possible with this install method since it creates a new working tree in /tmp for each session.
Here's the details:
So, I'm faced with rebuilding my tool set.
I have reinstalled pyenv, (in home directory).
Now have to install python 3.7.0, using pyenv
It seems to be happy for a while, then runs into a problem on the build.
It can't find _ctypes in the library.
I thought I could go to github, find the module and manually add it, but that's not possible with this install method since it creates a new working tree in /tmp for each session.
Here's the details:
Output:...:~> pyenv install 3.7.0
Downloading Python-3.7.0.tar.xz...
-> https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
Installing Python-3.7.0...
BUILD FAILED (openSUSE Leap 15.0 using python-build 1.2.7-3-g5603eb51)
Inspect or clean up the working tree at /tmp/python-build.20180914120431.20754
Results logged to /tmp/python-build.20180914120431.20754.log
Last 10 log lines:
import pip._internal
File "/tmp/tmp7v90vtfb/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/__init__.py", line 42, in <module>
File "/tmp/tmp7v90vtfb/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/cmdoptions.py", line 16, in <module>
File "/tmp/tmp7v90vtfb/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 25, in <module>
File "/tmp/tmp7v90vtfb/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/download.py", line 39, in <module>
File "/tmp/tmp7v90vtfb/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/utils/glibc.py", line 3, in <module>
File "/tmp/python-build.20180914120431.20754/Python-3.7.0/Lib/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
make: *** [Makefile:1122: install] Error 1
...:~>
I was successful with the old linux, (same release I believe), but don't know how to fix, and can't remember having this issue before (which also had python 3.7.0)