OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: Lars on May 12, 2025, 08:34:13 am

Title: Cannot update python
Post by: Lars on May 12, 2025, 08:34:13 am
Hi there,

I am offered python3 update to 3.13.2.-1. ANPM properly download all dependencies but fails with a "depsolve" problem.
I have tried both, copy python2.7.exe to python.exe and also python3.9.exe to python.exe but it fails anyway.
How do I force installation ? Obviously, I cannot do that from ANPM but a simple "yum update" does not offer such a thing as a --force switch.
Title: Re: Cannot update python
Post by: David McKenna on May 12, 2025, 12:17:13 pm
Lars,

  Same here - I just now opened a ticket on Bitwiseworks' github page...

Regards,
Title: Re: Cannot update python
Post by: Martin Iturbide on May 12, 2025, 10:38:33 pm
Hello

I have the same problem.

Regards
Title: Re: Cannot update python
Post by: Alex Taylor on May 16, 2025, 04:55:26 pm
You need to install both the python2.7 and python3 packages at the same time.

yum install python3 python2.7

Or select both of these packages in ANPM and install them together.

https://www.arcanoae.com/wiki/anpm/known-issues-limitations/
Title: Re: Cannot update python
Post by: Dave Yeo on May 16, 2025, 06:11:48 pm
yum install python3 python2.7 2>&1 | tee yum.out
Code: [Select]
Setting up Install Process
Package python2.7-2.7.18-3.oc00.pentium4 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package python3.pentium4 0:3.9.21-1.oc00 will be updated
--> Processing Dependency: python(abi) = 3.9 for package: python3-flit-core-3.12.0-1.oc00.noarch
--> Processing Dependency: python(abi) = 3.9 for package: python3-flit-core-3.12.0-1.oc00.noarch
--> Processing Dependency: python3 = 3.9.21-1.oc00 for package: python-unversioned-command-3.9.21-1.oc00.pentium4
---> Package python3.pentium4 0:3.13.2-1.oc00 will be an update
--> Processing Dependency: python3-libs = 3.13.2-1.oc00 for package: python3-3.13.2-1.oc00.pentium4
--> Processing Dependency: pytho313.dll for package: python3-3.13.2-1.oc00.pentium4
--> Running transaction check
---> Package python-unversioned-command.pentium4 0:3.9.21-1.oc00 will be updated
---> Package python-unversioned-command.pentium4 0:3.13.2-1.oc00 will be an update
---> Package python3-flit-core.noarch 0:3.12.0-1.oc00 will be updated
---> Package python3-flit-core.noarch 0:3.12.0-2.oc00 will be an update
---> Package python3-libs.pentium4 0:3.9.21-1.oc00 will be updated
--> Processing Dependency: python39.dll for package: python3-createrepo_c-1.2.1-1.oc00.pentium4
--> Processing Dependency: python39.dll for package: hplip-libs-3.19.12-1.oc00.pentium4
--> Processing Dependency: python39.dll for package: python3-rpm-4.15.1-3.oc00.pentium4
---> Package python3-libs.pentium4 0:3.13.2-1.oc00 will be an update
--> Processing Dependency: mpdec4.dll for package: python3-libs-3.13.2-1.oc00.pentium4
--> Running transaction check
---> Package hplip-libs.pentium4 0:3.19.12-1.oc00 will be updated
--> Processing Dependency: hplip-libs = 3.19.12-1.oc00 for package: hplip-3.19.12-1.oc00.pentium4
--> Processing Dependency: hplip-libs = 3.19.12-1.oc00 for package: libsane-hpaio-3.19.12-1.oc00.pentium4
---> Package hplip-libs.pentium4 0:3.19.12-2.oc00 will be an update
--> Processing Dependency: hplip-common = 3.19.12-2.oc00 for package: hplip-libs-3.19.12-2.oc00.pentium4
---> Package mpdecimal.pentium4 0:4.0.0-1.oc00 will be installed
---> Package python3-libs.pentium4 0:3.9.21-1.oc00 will be updated
--> Processing Dependency: python39.dll for package: python3-createrepo_c-1.2.1-1.oc00.pentium4
---> Package python3-rpm.pentium4 0:4.15.1-3.oc00 will be updated
---> Package python3-rpm.pentium4 0:4.15.1-4.oc00 will be an update
--> Processing Dependency: rpm-libs = 4.15.1-4.oc00 for package: python3-rpm-4.15.1-4.oc00.pentium4
--> Running transaction check
---> Package hplip.pentium4 0:3.19.12-1.oc00 will be updated
---> Package hplip.pentium4 0:3.19.12-2.oc00 will be an update
---> Package hplip-common.pentium4 0:3.19.12-1.oc00 will be updated
---> Package hplip-common.pentium4 0:3.19.12-2.oc00 will be an update
---> Package libsane-hpaio.pentium4 0:3.19.12-1.oc00 will be updated
---> Package libsane-hpaio.pentium4 0:3.19.12-2.oc00 will be an update
---> Package python3-libs.pentium4 0:3.9.21-1.oc00 will be updated
--> Processing Dependency: python39.dll for package: python3-createrepo_c-1.2.1-1.oc00.pentium4
---> Package rpm-libs.pentium4 0:4.15.1-3.oc00 will be updated
--> Processing Dependency: rpm-libs = 4.15.1-3.oc00 for package: python2-rpm-4.15.1-3.oc00.pentium4
--> Processing Dependency: rpm-libs = 4.15.1-3.oc00 for package: rpm-sign-libs-4.15.1-3.oc00.pentium4
--> Processing Dependency: rpm-libs = 4.15.1-3.oc00 for package: rpm-plugin-syslog-4.15.1-3.oc00.pentium4
--> Processing Dependency: rpm-libs = 4.15.1-3.oc00 for package: rpm-build-libs-4.15.1-3.oc00.pentium4
--> Processing Dependency: rpm-libs = 4.15.1-3.oc00 for package: rpm-devel-4.15.1-3.oc00.pentium4
---> Package rpm-libs.pentium4 0:4.15.1-4.oc00 will be an update
--> Processing Dependency: rpm = 4.15.1-4.oc00 for package: rpm-libs-4.15.1-4.oc00.pentium4
--> Running transaction check
---> Package python2-rpm.pentium4 0:4.15.1-3.oc00 will be updated
---> Package python2-rpm.pentium4 0:4.15.1-4.oc00 will be an update
---> Package python3-libs.pentium4 0:3.9.21-1.oc00 will be updated
--> Processing Dependency: python39.dll for package: python3-createrepo_c-1.2.1-1.oc00.pentium4
---> Package rpm.pentium4 0:4.15.1-3.oc00 will be updated
--> Processing Dependency: rpm = 4.15.1-3.oc00 for package: rpm-build-4.15.1-3.oc00.pentium4
---> Package rpm.pentium4 0:4.15.1-4.oc00 will be an update
---> Package rpm-build-libs.pentium4 0:4.15.1-3.oc00 will be updated
---> Package rpm-build-libs.pentium4 0:4.15.1-4.oc00 will be an update
---> Package rpm-devel.pentium4 0:4.15.1-3.oc00 will be updated
---> Package rpm-devel.pentium4 0:4.15.1-4.oc00 will be an update
---> Package rpm-plugin-syslog.pentium4 0:4.15.1-3.oc00 will be updated
---> Package rpm-plugin-syslog.pentium4 0:4.15.1-4.oc00 will be an update
---> Package rpm-sign-libs.pentium4 0:4.15.1-3.oc00 will be updated
--> Processing Dependency: rpm-sign-libs = 4.15.1-3.oc00 for package: rpm-sign-4.15.1-3.oc00.pentium4
---> Package rpm-sign-libs.pentium4 0:4.15.1-4.oc00 will be an update
--> Running transaction check
---> Package python3-libs.pentium4 0:3.9.21-1.oc00 will be updated
--> Processing Dependency: python39.dll for package: python3-createrepo_c-1.2.1-1.oc00.pentium4
---> Package rpm-build.pentium4 0:4.15.1-3.oc00 will be updated
---> Package rpm-build.pentium4 0:4.15.1-4.oc00 will be an update
---> Package rpm-sign.pentium4 0:4.15.1-3.oc00 will be updated
---> Package rpm-sign.pentium4 0:4.15.1-4.oc00 will be an update
--> Finished Dependency Resolution
Error: Package: python3-createrepo_c-1.2.1-1.oc00.pentium4 (installed)
           Requires: python39.dll
           Removing: python3-libs-3.9.21-1.oc00.pentium4 (installed)
               python39.dll
           Updated By: python3-libs-3.13.2-1.oc00.pentium4 (netlabs-exp)
               Not found
           Available: python3-libs-3.9.5-8.oc00.pentium4 (netlabs-rel)
               python39.dll
           Available: python3-libs-3.9.17-1.oc00.pentium4 (netlabs-rel)
               python39.dll
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Title: Re: Cannot update python
Post by: David McKenna on May 16, 2025, 09:44:59 pm
 Try now... Sylvan updated everything that needed it for Python 3.13 and so should work now. At least it did for me.

Regards,
Title: Re: Cannot update python
Post by: Martin Iturbide on May 16, 2025, 11:33:34 pm
Hello

Right now on my VM with ArcaOS 5.1.1 (Bios), ANPM (1.1) was crashing when a "Update All" was requested.

On the command line I did "yum install python3 python2.7" as requested. It installed the stuff without problems.

After that ANPM made the "Update All" and did not crashed , rebooted for the first install of packages, and I got this new error on the next boot.

Regards

Title: Re: Cannot update python
Post by: David McKenna on May 16, 2025, 11:39:40 pm
Martin,

  That error is about OpenSSL, not Python. Best to raise a ticket like the message says.

Regards,
Title: Re: Cannot update python
Post by: Dave Yeo on May 17, 2025, 05:14:40 am
I had to remove python3-createrepo_c-1.2.1-1, and then like Martin, ANPM crashed. Command line worked.
Title: Re: Cannot update python
Post by: Dave Yeo on May 17, 2025, 06:06:46 am
Doug had this to say on the testers list in response to an earlier ANPM crash I had,
Quote
This is caused by trying to update HPLIP, HPLIP-COMMON, or HPLIP-LIBS. If you select only LIBAIO, it includes those three, and all updates properly.
Should have remembered sooner.
Title: Re: Cannot update python
Post by: Lars on May 29, 2025, 08:14:47 am
I still cannot update python.
I tried:
1) updating via ANPM
2) run "yum update python3" from a commandline
3) run "yum update python3 python2.7" from a commandline

All to no avail, each ends with a version conflict, for example from ANPM:
Quote
ERROR with transaction check vs depsolve:python(abi) = 3.9 wird benötigt von (installiert) python3-dateutil-1:2.8.1-3.oc00.noarchBitte melden Sie diesen Fehler unter http://yum.baseurl.org/report

Is there any "force" mode to force the update ?
Title: Re: Cannot update python
Post by: David McKenna on May 29, 2025, 12:14:15 pm
Lars,

  It could be that python3-dateutil needs to be updated for python 3.13 (I don't have that installed). You could try uninstalling it then try updating python again, but if it works you probably won't be able to re-install python3-dateutil. I don't know of a way to force it. You should report this at 'https://github.com/bitwiseworks/rpm-issues/issues' and maybe Sylvan can update that one too.

Regards,
Title: Re: Cannot update python
Post by: Dariusz Piatkowski on May 29, 2025, 01:42:04 pm
Hello Lars!

I am offered python3 update to 3.13.2.-1. ANPM properly download all dependencies but fails with a "depsolve" problem.
I have tried both, copy python2.7.exe to python.exe and also python3.9.exe to python.exe but it fails anyway.
How do I force installation ? Obviously, I cannot do that from ANPM but a simple "yum update" does not offer such a thing as a --force switch.

So while neither ANPM nor YUM offer '--force' switch, RPM itself certainly does.

AFAIK even the RPM --force will choke if dependency checks fail, but for what it's worth, have you given that a try?

As a follow-up to that, if --force still fails, maybe give RPM's '--nodeps' a go as that is ultimately supposed to skip the dependency checks.

Perhaps doing both --force & --nodeps is the way if your are completely stuck? Oh, also, do run these with the --test option first and see what RPM does before running the real deal!

The only caveat to all of this would be: so does that actually mess up with the longer term status of your RPM packages and will you re-encounter the very same issue down the road again?
Title: Re: Cannot update python
Post by: Andi B. on May 29, 2025, 03:18:27 pm
Quote
Is there any "force" mode to force the update ?
I only can suggest to try 'yum reinstall python3 python2' or maybe 'yum reinstall python3 python2.7' or 'yum reinstall python2'. But I don't know if reinstall works here. I think I've overcome such situation but can remember anything else then 'reinstall'. Maybe yum shell - remove python3 - run - exit. Don't know if it works. Removing python2 does not work for sure.

'yum remove python3' reboot and then 'yum reinstall python3 python2' together maybe worth to try too. Maybe your problem is only cause you're using 2.7 instead 2?

Good luck.