Author Topic: Installing Python 3 (from netlabs exp) does not work  (Read 2209 times)

Lars

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +53/-0
    • View Profile
Installing Python 3 (from netlabs exp) does not work
« on: September 09, 2021, 10:15:48 am »
I had nothing better to do so I attempted to install python 3 via ANPM.
I get this error:

python-pycurl-7.19.5.1-2.oc00.pentium4 benötigt python27.dll

However, I do have a file "python27.dll" in \usr\lib and I have no probs at all with the currently installed python 2.7.

I then tried:

yum install python3 and get this:
Code: [Select]
Einrichten des Installationsprozess
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Paket python3.pentium4 0:3.9.5-5.oc00 markiert, um installiert zu werden
--> Verarbeite Abhängigkeiten: python3-libs = 3.9.5-5.oc00 für Paket: python3-3.9.5-5.oc00.pentium4
--> Verarbeite Abhängigkeiten: python39.dll für Paket: python3-3.9.5-5.oc00.pentium4
--> Führe Transaktionsprüfung aus
---> Paket python-libs.pentium4 0:2.7.6-25.oc00 markiert, um veraltet zu werden
--> Verarbeite Abhängigkeiten: python-libs = 2.7.6-25.oc00 für Paket: python-2.7.6-25.oc00.pentium4
--> Verarbeite Abhängigkeiten: python27.dll für Paket: yum-metadata-parser-1.1.4-7.oc00.pentium4
Package python-libs is obsoleted by python3-libs, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python27.dll für Paket: python2-rpm-4.13.0-19.oc00.pentium4
Package python-libs is obsoleted by python3-libs, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python27.dll für Paket: python-2.7.6-25.oc00.pentium4
--> Verarbeite Abhängigkeiten: python27.dll für Paket: python-pycurl-7.19.5.1-2.oc00.pentium4
Package python-libs is obsoleted by python3-libs, but obsoleting package does not provide for requirements
---> Paket python3-libs.pentium4 0:3.9.5-5.oc00 markiert, um obsoleting zu werden
--> Führe Transaktionsprüfung aus
---> Paket python.pentium4 0:2.7.6-25.oc00 markiert, um veraltet zu werden
--> Verarbeite Abhängigkeiten: python(abi) = 2.7 für Paket: yum-metadata-parser-1.1.4-7.oc00.pentium4
Package python is obsoleted by python-unversioned-command, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python(abi) = 2.7 für Paket: urlgrabber-3.10.1-10.oc00.noarch
Package python is obsoleted by python-unversioned-command, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python(abi) = 2.7 für Paket: python2-rpm-4.13.0-19.oc00.pentium4
Package python is obsoleted by python-unversioned-command, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python(abi) = 2.7 für Paket: yum-3.4.3-13.oc00.pentium4
Package python is obsoleted by python-unversioned-command, but obsoleting package does not provide for requirements
---> Paket python-libs.pentium4 0:2.7.6-25.oc00 markiert, um veraltet zu werden
--> Verarbeite Abhängigkeiten: python27.dll für Paket: yum-metadata-parser-1.1.4-7.oc00.pentium4
Package python-libs is obsoleted by python3-libs, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python27.dll für Paket: python2-rpm-4.13.0-19.oc00.pentium4
Package python-libs is obsoleted by python3-libs, but obsoleting package does not provide for requirements
--> Verarbeite Abhängigkeiten: python27.dll für Paket: python-pycurl-7.19.5.1-2.oc00.pentium4
Package python-libs is obsoleted by python3-libs, but obsoleting package does not provide for requirements
---> Paket python-unversioned-command.pentium4 0:3.9.5-5.oc00 markiert, um obsoleting zu werden
--> Verarbeite Abhängigkeiten: /@unixroot/usr/bin/python2 für Paket: cmake-rpm-macros-3.15.3-1.oc00.noarch
Package python is obsoleted by python-unversioned-command, but obsoleting package does not provide for requirements
--> Abhängigkeitsauflösung beendet
 Sie können versuchen mit --skip-broken das Problem zu umgehen.
 You could try running: rpm -Va --nofiles --nodigest

This gives me the impression that there is a conflict with the already installed python 2.7

Unfortunately I cannot catch all screen output of "yum install python3" but I also get this:
Code: [Select]
Fehler: Paket: yum-3.4.3-13.oc00.pentium4 (installed)
            Benötigt: python(abi) = 2.7
            Entfernen: python-2.7.6-25.oc00.pentium4 (installed)
                python(abi) = 2.7
            Überholt durch: python-unversioned-command-3.9.5-5.oc00.pentium4 (netlabs-exp)
                Nicht gefunden

However, attempting to install "python-unversioned-command-3.9.5-5.oc00.pentium4" again gets me to this error:

python-pycurl-7.19.5.1-2.oc00.pentium4 benötigt python27.dll

Needless to say, running with "--skip-broken" or "rpm -Va --nofiles --nodigest" does not make a difference.

What further confuses me is that I have "python" (and various related packages) installed but I now see that there also exists a "python2.7" in netlabs-exp with various related packages. So how would I be able to replace "python" with "python2.7" ?

« Last Edit: September 09, 2021, 10:21:34 am by Lars »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #1 on: September 09, 2021, 11:27:37 am »
Man I *love* RPM....

David McKenna

  • Hero Member
  • *****
  • Posts: 503
  • Karma: +18/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #2 on: September 09, 2021, 12:22:35 pm »
 Hey Lars,

 I struggled with this too, and reported  here: https://github.com/bitwiseworks/python-os2/issues/6

 Long story short: you need to use 'yum update python'. This installs both the new python2 and python3. But it doesn't seem to work if you are using the pentium4 platform, only works with i686, at least not for me.

Regards,

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #3 on: September 09, 2021, 01:27:13 pm »
Man I *love* RPM....
One problem is that yum itself uses Python.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4043
  • Karma: +81/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #4 on: September 09, 2021, 04:33:33 pm »
IIRC, you need to update to the latest Python 2.7 to get the new python27.dll, reboot, then update Python (and yum) and to be safe, reboot.
Well written scripts should find the correct Python version, with python pointing at python.exe which is Python3 and python2.7 which points to python2.7.exe. Sometimes it helps to have %PYTHON% = python2.7.exe to run python2.
Anyways the reboots are important to replace the locked DLL.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #5 on: January 18, 2023, 10:03:34 am »
Anyone know how to get python3 installed? Log attached is what I'm getting on two different AOS installs

roberto

  • Hero Member
  • *****
  • Posts: 704
  • Karma: +2/-0
    • View Profile

David McKenna

  • Hero Member
  • *****
  • Posts: 503
  • Karma: +18/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #7 on: January 18, 2023, 12:14:54 pm »
 Paul,

  The only way I was able to install python3 was by disabling all repositories in ANPM except netlabs-exp, closing ANPM, then on a command line typing 'yum update python' (no '3'). This updated both python 2 and added python3. YMMV.

Regards,

Mike Kölling

  • Full Member
  • ***
  • Posts: 108
  • Karma: +6/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #8 on: January 18, 2023, 02:53:38 pm »
Paul,

  The only way I was able to install python3 was by disabling all repositories in ANPM except netlabs-exp, closing ANPM, then on a command line typing 'yum update python' (no '3'). This updated both python 2 and added python3. YMMV.

Regards,

Hi David,

Thanks for your explanation how to install Python 3. It was working here quite well.

Greetings, Mike

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #9 on: January 19, 2023, 12:03:03 am »
Hey Dave,

  The only way I was able to install python3 was by disabling all repositories in ANPM except netlabs-exp, closing ANPM, then on a command line typing 'yum update python' (no '3'). This updated both python 2 and added python3. YMMV.

Thanks - this worked for me on the 1st machine I tried it on.

Cheers,

Paul.

mauro

  • Sr. Member
  • ****
  • Posts: 351
  • Karma: +3/-0
    • View Profile
Re: Installing Python 3 (from netlabs exp) does not work
« Reply #10 on: January 19, 2023, 05:11:05 pm »
notification sent yesterday from Arca Noae about new version of ANPM with some bug fix, maybe could apply to the case,  no idea if it solve the issue or not
https://www.arcanoae.com/arca-noae-package-manager-1-1-0-has-been-released/