TW Update: Python things giving me heartburn

Weekly update time and…

2 Problems:
Problem: the to be installed python310-nbformat-5.9.0-2.1.noarch requires '(python310-jsonschema > 2.6 with python310-jsonschema < 4.18)', but this requirement cannot be provided
Problem: the to be installed python311-nbformat-5.9.0-2.1.noarch requires '(python311-jsonschema > 2.6 with python311-jsonschema < 4.18)', but this requirement cannot be provided

Problem: the to be installed python310-nbformat-5.9.0-2.1.noarch requires '(python310-jsonschema > 2.6 with python310-jsonschema < 4.18)', but this requirement cannot be provided
  not installable providers: python310-jsonschema417-4.17.3-1.1.noarch[download.opensuse.org-oss]
 Solution 1: Following actions will be done:
  deinstallation of python310-nbformat-5.9.0-1.2.noarch
  deinstallation of python310-notebook-6.5.4-1.2.noarch
  deinstallation of python310-nbconvert-7.6.0-1.1.noarch
  deinstallation of python310-nbclient-0.8.0-1.2.noarch
  deinstallation of python310-nbclassic-1.0.0-1.2.noarch
  deinstallation of python310-jupyter-server-2.6.0-1.2.noarch
  deinstallation of python310-jupyter-server-fileid-0.9.0-1.2.noarch
  deinstallation of python310-jupyterlab-4.0.2-1.2.noarch
  deinstallation of python310-jupyterlab-server-2.23.0-1.1.noarch
  deinstallation of python310-notebook-shim-0.2.3-1.2.noarch
  deinstallation of python310-jupyter-1.0.0-12.2.noarch
  deinstallation of python310-jupyter-lsp-2.2.0-1.2.noarch
 Solution 2: Following actions will be done:
  deinstallation of python310-jsonschema-4.18.0-1.1.noarch
  deinstallation of python310-jsonschema-format-nongpl-4.18.0-1.1.noarch
 Solution 3: keep obsolete python310-nbformat-5.9.0-1.2.noarch
 Solution 4: break python310-nbformat-5.9.0-2.1.noarch by ignoring some of its dependencies

Sit tight or do something? I don’t use Jupyter so I guess I’ll just get rid. Python is a real pain the neck on openSUSE. I should pick “Solution” 4 just because. Sod it, I’ll probably hit 2 - bloody hell.

I finally got tired of the python mish-mash of commingled py310 and py311 packages … the other day I did a “clean-up” and got rid of all the py310 packages … plus some other oddball apps (that wanted py) that I wasn’t using, so removed them.

So now I only have the py311 packages and haven’t had anymore “py update problems” ! :+1:

I’d probably choose the least intrusive (2), but watch for any new conflicts. If more conflicts show up, maybe cancel and retry with Sol. (1).

I did as @aggie … I cleaned out the python310 packages and only using 311.

I already selected number 2. There was another issue afterwards but I selected 2 again as it was ostensibly the same issue.

I think I’ll do as you both suggested and get rid of py310 packages. How did you do it? I know how I would do it but it might be considered insane.

Here’s my “history” … but DO NOT take it as proper instructions … simply a sample of hints … I cleaned up some other stuff too, and there were cases where I rejected the removal … Anyway, just a sample follows :+1: You’ll notice I do a dry-run first, then usu follow with the real thing.

I know, I know, I’d still be prompted without dry-run, but I was a bit paranoid, so did dry-run since nothing will happen, no matter what key I hit :slight_smile:

# history | grep pyt
  821  2023-07-04 22:18:39 zypper remove --dry-run python310*
  822  2023-07-04 22:20:29 zypper remove  python310*
  870  2023-07-07 13:26:27 zypper rm --dry-run sudo-plugin-python
  871  2023-07-07 13:27:58 zypper rm --dry-run python38
  872  2023-07-07 13:28:26 zypper rm  python38
  873  2023-07-07 13:29:13 zypper rm --dry-run python38-base
  874  2023-07-07 13:29:52 zypper rm  python38-base
  875  2023-07-07 13:33:17 zypper rm --dry-run python2-pycairo
  876  2023-07-07 13:35:42 zypper rm --dry-run python2_7-1_0
  882  2023-07-07 13:41:51 zypper rm --dry-run libpython2_7-1_0
  883  2023-07-07 13:42:17 zypper rm   libpython2_7-1_0

What @aggie shows is similar to my clean-up of python …

Thanks for the advice and confirming my insanity. :+1:

In my experience, this happens most frequently when there are related packages installed from different repos - I know @mong has resolved this, but what I would probably have done is looked to see what repos each package is from to determine if perhaps some need to switch repos in order to resolve the issues.

Ultimately, the option to simplify the python installs seems to be the right one here, but sometimes that can create issues (particularly if you remove 2.x and leave 3.x or vice-versa). But 3.10 vs 3.11 shouldn’t cause much in the way of issues, I imagine.

The best would be to fix python-nbformat to work with new python-jsonschema

Sun Jul  9 12:09:42 UTC 2023 - Ben Greiner <code@bnavigator.de>

- Like many other packages, jsonschema 4.18 breaks nbformat.
  * Pin to jsonschema < 4.18

Did you even try to read the original post? In case comprehending normal posts without ellipses, bold fonts and emojies is too hard, I quote:

Notice python311 there?

OK, it looks like there will be package pythonNN-jsonschema417 which will provide necessary version. This package will conflict with pythonNN-jsonschema version 4.18 or above, so one will need to decide which packages one needs.

quite confusing, on one system I suddenly get the same issue, on another machine, nothing like that.
I choose keep the old for those 4

5 Probleme:
Problem: das zu installierende pipewire-alsa-0.3.72-139.3.x86_64 steht im Konflikt mit 'alsa-plugins-pulse', das vom installierten alsa-plugins-pulse-1.2.7.1-4.4.x86_64 bereitgestellt wird
Problem: das zu installierende python310-nbformat-5.9.0-2.1.noarch erfordert '(python310-jsonschema > 2.6 with python310-jsonschema < 4.18)', aber diese Anforderung kann nicht bereitgestellt werden
Problem: das installierte python310-ipyparallel-8.6.1-1.3.noarch erfordert 'python310-jupyter-client < 8', aber diese Anforderung kann nicht bereitgestellt werden
Problem: das zu installierende python311-nbformat-5.9.0-2.1.noarch erfordert '(python311-jsonschema > 2.6 with python311-jsonschema < 4.18)', aber diese Anforderung kann nicht bereitgestellt werden
Problem: das installierte jupyter-notebook-6.5.4-1.2.noarch erfordert 'python3-notebook = 6.5.4', aber diese Anforderung kann nicht bereitgestellt werden

Problem: das zu installierende pipewire-alsa-0.3.72-139.3.x86_64 steht im Konflikt mit 'alsa-plugins-pulse', das vom installierten alsa-plugins-pulse-1.2.7.1-4.4.x86_64 bereitgestellt wird
 Lösung 1: Deinstallation von alsa-plugins-pulse-1.2.7.1-4.4.x86_64
 Lösung 2: Deinstallation von pipewire-alsa-0.3.70-131.3.x86_64
 Lösung 3: veraltetes pipewire-alsa-0.3.70-131.3.x86_64 beibehalten

Wählen Sie aus den obigen Lösungen mittels Nummer oder Sie (u)eberspringen, (w)iederholen oder brechen (a)b [1/2/3/u/w/a/d/?] (a): 3

Problem: das zu installierende python310-nbformat-5.9.0-2.1.noarch erfordert '(python310-jsonschema > 2.6 with python310-jsonschema < 4.18)', aber diese Anforderung kann nicht bereitgestellt werden
  Nicht installierbare Anbieter: python310-jsonschema417-4.17.3-1.1.noarch[https-download.opensuse.org-1eb68719]
                   python310-jsonschema417-4.17.3-1.1.noarch[repo-oss]
 Lösung 1: Folgende Aktionen werden ausgeführt:
  Deinstallation von python310-nbformat-5.9.0-1.2.noarch
  Deinstallation von python310-nbconvert-7.6.0-1.1.noarch
  Deinstallation von python310-nbclient-0.8.0-1.2.noarch
  Deinstallation von python310-nbclassic-1.0.0-1.2.noarch
  Deinstallation von python310-jupyter-server-2.6.0-1.2.noarch
  Deinstallation von python310-notebook-6.5.4-1.1.noarch
  Deinstallation von python310-jupyter-1.0.0-12.2.noarch
  Deinstallation von python310-jupyter-server-fileid-0.9.0-1.2.noarch
  Deinstallation von python310-jupyterlab-4.0.2-1.2.noarch
  Deinstallation von python310-jupyterlab-server-2.23.0-1.1.noarch
  Deinstallation von python310-notebook-shim-0.2.3-1.2.noarch
  Deinstallation von python310-jupyter-lsp-2.2.0-1.2.noarch
  Deinstallation von python310-jupyter-collaboration-1.0.0-1.2.noarch
 Lösung 2: Folgende Aktionen werden ausgeführt:
  Deinstallation von python310-jsonschema-4.18.0-1.1.noarch
  Deinstallation von python310-jsonschema-format-nongpl-4.18.0-1.1.noarch
 Lösung 3: veraltetes python310-nbformat-5.9.0-1.2.noarch beibehalten
 Lösung 4: python310-nbformat-5.9.0-2.1.noarch durch Ignorieren einiger Abhängigkeiten brechen

Wählen Sie aus den obigen Lösungen mittels Nummer oder Sie (u)eberspringen, (w)iederholen oder brechen (a)b [1/2/3/4/u/w/a/d/?] (a): 3

Problem: das installierte python310-ipyparallel-8.6.1-1.3.noarch erfordert 'python310-jupyter-client < 8', aber diese Anforderung kann nicht bereitgestellt werden
  Gelöschte Anbieter: python310-jupyter-client-7.4.9-1.2.noarch
Nicht installierbare Anbieter: python310-jupyter-client7-7.4.9-2.2.noarch[https-download.opensuse.org-1eb68719]
                   python310-jupyter-client7-7.4.9-2.2.noarch[repo-oss]
 Lösung 1: Folgende Aktionen werden ausgeführt:
  Deinstallation von python310-ipyparallel-8.6.1-1.3.noarch
  Deinstallation von python310-notebook-6.5.4-1.1.noarch
  Deinstallation von python310-jupyter-1.0.0-12.2.noarch
 Lösung 2: Deinstallation von python310-jupyter-client-7.4.9-1.2.noarch
 Lösung 3: veraltetes python310-jupyter-client-7.4.9-1.2.noarch beibehalten
 Lösung 4: python310-ipyparallel-8.6.1-1.3.noarch durch Ignorieren einiger Abhängigkeiten brechen

Wählen Sie aus den obigen Lösungen mittels Nummer oder Sie (u)eberspringen, (w)iederholen oder brechen (a)b [1/2/3/4/u/w/a/d/?] (a): 3

Problem: das zu installierende python311-nbformat-5.9.0-2.1.noarch erfordert '(python311-jsonschema > 2.6 with python311-jsonschema < 4.18)', aber diese Anforderung kann nicht bereitgestellt werden
  Nicht installierbare Anbieter: python311-jsonschema417-4.17.3-1.1.noarch[https-download.opensuse.org-1eb68719]
                   python311-jsonschema417-4.17.3-1.1.noarch[repo-oss]
 Lösung 1: Folgende Aktionen werden ausgeführt:
  Deinstallation von python311-nbformat-5.9.0-1.2.noarch
  Deinstallation von python311-nbclient-0.8.0-1.2.noarch
  Deinstallation von python311-jupyter-server-2.6.0-1.2.noarch
 Lösung 2: Folgende Aktionen werden ausgeführt:
  Deinstallation von python311-jsonschema-4.18.0-1.1.noarch
  Deinstallation von python311-jsonschema-format-nongpl-4.18.0-1.1.noarch
 Lösung 3: veraltetes python311-nbformat-5.9.0-1.2.noarch beibehalten
 Lösung 4: python311-nbformat-5.9.0-2.1.noarch durch Ignorieren einiger Abhängigkeiten brechen

Wählen Sie aus den obigen Lösungen mittels Nummer oder Sie (u)eberspringen, (w)iederholen oder brechen (a)b [1/2/3/4/u/w/a/d/?] (a): 3

Problem: das installierte jupyter-notebook-6.5.4-1.2.noarch erfordert 'python3-notebook = 6.5.4', aber diese Anforderung kann nicht bereitgestellt werden
  Gelöschte Anbieter: python310-notebook-6.5.4-1.1.noarch
Nicht installierbare Anbieter: python311-notebook-6.5.4-1.2.noarch[https-download.opensuse.org-1eb68719]
                   python311-notebook-6.5.4-1.2.noarch[repo-oss]
 Lösung 1: Folgende Aktionen werden ausgeführt:
  Deinstallation von jupyter-notebook-6.5.4-1.2.noarch
  Deinstallation von python310-notebook-6.5.4-1.1.noarch
  Deinstallation von python310-jupyter-1.0.0-12.2.noarch
 Lösung 2: Deinstallation von python311-jupyter-client-8.3.0-1.1.noarch
 Lösung 3: veraltetes python310-notebook-6.5.4-1.1.noarch beibehalten
 Lösung 4: jupyter-notebook-6.5.4-1.2.noarch durch Ignorieren einiger Abhängigkeiten brechen

Wählen Sie aus den obigen Lösungen mittels Nummer oder Sie (u)eberspringen, (w)iederholen oder brechen (a)b [1/2/3/4/u/w/a/d/?] (a): 3
Abhängigkeiten werden aufgelöst...
Distributions-Aktualisierungen werden verarbeitet...

Did not it occur to you that it depends on which packages are installed on each system?

Use both Solution 2, that will install:

python31x-jsonschema417

Done it on a PC with Tumbleweed.

1 Like