Python Forum
Pyenv build of python 3.7.0 issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyenv build of python 3.7.0 issue
#1
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)
Reply


Messages In This Thread
Pyenv build of python 3.7.0 issue - by Larz60+ - Sep-14-2018, 04:32 PM
RE: Pyenv build of python 3.7.0 issue - by Larz60+ - Sep-14-2018, 07:49 PM
RE: Pyenv build of python 3.7.0 issue - by Larz60+ - Dec-03-2018, 09:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  build Python 3.12 in el7 SergeyMx 5 1,301 Oct-05-2023, 08:14 AM
Last Post: SergeyMx
Shocked Issues Installing Pyenv/Python 3.9.1 Brandon_Contactum 1 2,580 Feb-22-2022, 06:32 PM
Last Post: snippsat
  Can't install Python 2.6.9 with Pyenv Whyze 6 3,994 May-21-2021, 10:52 PM
Last Post: Whyze
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 4,667 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,208 Sep-14-2020, 04:11 AM
Last Post: Deepan
  Build Python RPM pvbadiger05b 0 1,615 May-11-2020, 06:50 PM
Last Post: pvbadiger05b
  cannot build python 3.8.2 (make test fails on test_imprtlib) borabora 1 2,779 May-08-2020, 09:10 PM
Last Post: Larz60+
  How to build exe/deployable file from Python Project ShikhaJain 1 2,829 Jul-04-2019, 05:37 PM
Last Post: snippsat
  Build error (Python 3.7) Saszalez 0 2,263 Jun-20-2019, 07:59 AM
Last Post: Saszalez
  PYTHON - UNRAR : how can I build a thread to monitoring the downloading status Palerm0_24 2 2,627 Mar-18-2019, 02:25 PM
Last Post: Palerm0_24

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020