Python Forum

Full Version: Pyenv build of python 3.7.0 issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
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)
Since I haven't been able to find an answer to this problem yet, I loaded python 3.6.6 as the default for pyenv. That will have to do for now.
I successfull build python 3.7.1 with pyenv on openSUSE Tumbleweed after installing
libffi-devel.
This post was from last September. I have since left OpenSuse, too many issues. Now back on Linux Mint. No issues whatsoever.