Python Forum
Can't install Python 2.6.9 with Pyenv
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't install Python 2.6.9 with Pyenv
#1
Hi,

I'm trying to install Python 2.6.9 in Pyenv 1.2.27. I used Doctor to check if everything is in working order. It says I'm ready to build Pythons. I get this error:

Error:
Downloading Python-2.6.9.tgz... -> https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz Installing Python-2.6.9... /home/Spidey/.pyenv/plugins/python-build/bin/python-build: line 1559: patch: command not found BUILD FAILED (openSUSE Leap 15.2 using python-build 20180424) Inspect or clean up the working tree at /tmp/python-build.20210520190532.2838 Results logged to /tmp/python-build.20210520190532.2838.log Last 10 log lines: /tmp/python-build.20210520190532.2838 ~ /tmp/python-build.20210520190532.2838/Python-2.6.9 /tmp/python-build.20210520190532.2838 ~
Huh
Reply
#2
Try to install gnu patch on your system. 'patch' is a standard command in linux systems.
Reply
#3
Thank you for the quick response. Big Grin

Your suggestion worked hehe. However now I'm getting another error:

Error:
Downloading Python-2.6.9.tgz... -> https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz Installing Python-2.6.9... patching file setup.py Hunk #1 succeeded at 354 (offset 9 lines). patching file ./configure patching file ./Modules/readline.c Hunk #1 succeeded at 199 (offset -7 lines). Hunk #2 succeeded at 698 (offset -51 lines). Hunk #3 succeeded at 808 (offset -51 lines). Hunk #4 succeeded at 848 with fuzz 2 (offset -70 lines). patching file ./setup.py Hunk #1 succeeded at 1698 (offset 23 lines). patching file ./Lib/ssl.py patching file ./Modules/_ssl.c ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib? Please consult to the Wiki page to fix the problem. https://github.com/pyenv/pyenv/wiki/Common-build-problems BUILD FAILED (openSUSE Leap 15.2 using python-build 20180424) Inspect or clean up the working tree at /tmp/python-build.20210520191906.3310 Results logged to /tmp/python-build.20210520191906.3310.log Last 10 log lines: then rm -f /home/Spidey/.pyenv/versions/2.6.9/bin/python; \ else true; \ fi (cd /home/Spidey/.pyenv/versions/2.6.9/bin; ln python2.6 python) rm -f /home/Spidey/.pyenv/versions/2.6.9/bin/python-config (cd /home/Spidey/.pyenv/versions/2.6.9/bin; ln -s python2.6-config python-config) Creating directory /home/Spidey/.pyenv/versions/2.6.9/share/man Creating directory /home/Spidey/.pyenv/versions/2.6.9/share/man/man1 /usr/bin/install -c -m 644 ./Misc/python.man \ /home/Spidey/.pyenv/versions/2.6.9/share/man/man1/python.1
Reply
#4
Again I think there are missing libraries on your system. I don't use opensuse but try installing openssl perhaps.
Reply
#5
I thought the days of manually resolving dependencies was over lol. How wrong I was. I find it odd that doctor would give me a thumbs up even though I'm missing all these libs.

I'll go ask the boys over at the SUSE forums. They should be able to point me to the proper packages much easier. Thanks for the assist. Big Grin Thumbs Up
Reply
#6
Quote:I thought the days of manually resolving dependencies was over lol.

Actually, the days of Python 2.x are over. No longer supported and it is strongly recommended that code be upgraded to a recent 3.x Even Flask requires 3.6 or later now. Not sure why you are wanting to use dead code, but that is what happens when you do!
Big Grin
Gribouillis likes this post
Reply
#7
Fair enough. Smile

I'm trying to install qubes-core-agent-linux-master.zip in my openSUSE vm. I want to send commands to my vm from dom0. I'm actually not at all sure if I need Python 2.6 to install it. It's mostly just a guess on my part. xD

Been at this for two weeks now. Way longer than I'm used to for one objective. Shy

Guess it's what you gottta go through if you wanna Qubes. Rolleyes
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Shocked Issues Installing Pyenv/Python 3.9.1 Brandon_Contactum 1 2,516 Feb-22-2022, 06:32 PM
Last Post: snippsat
  Pyenv build of python 3.7.0 issue Larz60+ 3 4,268 Dec-03-2018, 09:28 PM
Last Post: Larz60+
  How yo find "zlib" necessary for "pyenv" in Linux sylas 1 3,128 Aug-13-2018, 10:27 AM
Last Post: Larz60+
  using pyenv and virtual environment created with venv question Larz60+ 3 3,957 Jul-04-2018, 04:30 PM
Last Post: Larz60+
  pyenv says python 3 is not installed iFunKtion 3 5,697 Oct-11-2016, 07:48 AM
Last Post: wavic

Forum Jump:

User Panel Messages

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