OS/2, eCS & ArcaOS - Technical > Setup & Installation

Cannot update python

<< < (3/3)

Lars:
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
--- End quote ---

Is there any "force" mode to force the update ?

David McKenna:
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,

Dariusz Piatkowski:
Hello Lars!


--- Quote from: Lars on May 12, 2025, 08:34:13 am ---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.

--- End quote ---

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?

Andi B.:

--- Quote ---Is there any "force" mode to force the update ?
--- End quote ---
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.

Navigation

[0] Message Index

[*] Previous page

Go to full version