Python dependencies in Leap 15.3
Hi, if I have a Python3 program I would expect that only Python3 dependencies are being installed. That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340 Is there an easy way to find out which package pulls python2? I tried a 'solver testcase' but that did not really help.... Thanks Axel
Hi, On 07 Apr 12:35 2021, Axel Braun wrote:
Hi,
if I have a Python3 program I would expect that only Python3 dependencies are being installed.
That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340
Is there an easy way to find out which package pulls python2? I tried a 'solver testcase' but that did not really help....
The right(TM) way would be to setup something like https://github.com/lnussel/websolv and check the dependencies. But a hacky way would be # zypper rm -u libpython2_7-1_0 # zypper al libpython2_7-1_0 # zypper in gnuhealth which should fail now and show the culprit trying to pull python2. Regards, ismail -- I come from a line of pessimists. My mother was a pessimist. — Daniel Kahneman SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imendörffer (HRB 36809, AG Nürnberg)
Hi Ismail, Am Mittwoch, 7. April 2021, 12:48:38 CEST schrieb İsmail Dönmez:
On 07 Apr 12:35 2021, Axel Braun wrote:
if I have a Python3 program I would expect that only Python3 dependencies are being installed.
That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340
Is there an easy way to find out which package pulls python2? I tried a 'solver testcase' but that did not really help....
The right(TM) way would be to setup something like https://github.com/lnussel/websolv and check the dependencies. But a hacky way would be
# zypper rm -u libpython2_7-1_0 # zypper al libpython2_7-1_0 # zypper in gnuhealth
which should fail now and show the culprit trying to pull python2.
Well, in this case it will only install py3 programs, but does not fail on a py2 program. Removing the lock on libpython2 would install py2 programs again..... Best, Axel
On 07 Apr 13:06 2021, Axel Braun wrote:
Hi Ismail,
Am Mittwoch, 7. April 2021, 12:48:38 CEST schrieb İsmail Dönmez:
On 07 Apr 12:35 2021, Axel Braun wrote:
if I have a Python3 program I would expect that only Python3 dependencies are being installed.
That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340
Is there an easy way to find out which package pulls python2? I tried a 'solver testcase' but that did not really help....
The right(TM) way would be to setup something like https://github.com/lnussel/websolv and check the dependencies. But a hacky way would be
# zypper rm -u libpython2_7-1_0 # zypper al libpython2_7-1_0 # zypper in gnuhealth
which should fail now and show the culprit trying to pull python2.
Well, in this case it will only install py3 programs, but does not fail on a py2 program. Removing the lock on libpython2 would install py2 programs again.....
True, I didn't consider Recommends and such. Regards, ismail -- When the hardware is working perfectly, the really important visitors don't show up. — Atkin's Law of Demonstrations SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imendörffer (HRB 36809, AG Nürnberg)
Hi Axel, On 4/7/21 6:35 PM, Axel Braun wrote:
Hi,
if I have a Python3 program I would expect that only Python3 dependencies are being installed.
That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340
It looks like because of python2-matplotlib-tk is recommended to install to your system, digging into it, gnuhealth -> python3-matplotlib -> python2-matplotlib-tk - was Recommands:(python-matplotlib-tk if tk) in the python3-matplotlib, that should be a python-matplotlib. Regards, Max
Hi Max, Thanks for the update! Am Donnerstag, 8. April 2021, 09:31:03 CEST schrieb Max Lin:
On 4/7/21 6:35 PM, Axel Braun wrote:
if I have a Python3 program I would expect that only Python3 dependencies are being installed.
That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340
It looks like because of python2-matplotlib-tk is recommended to install to your system, digging into it, gnuhealth -> python3-matplotlib -> python2-matplotlib-tk - was Recommands:(python-matplotlib-tk if tk) in the python3-matplotlib, that should be a python-matplotlib.
As you mentioned in the bug report, the matplotlib is coming from SLE, and is obviously build different than the one in Leap. There are some more differences in building Leap 15.3 compared to 15.2 or TW. Will send a separate mail..... Thanks for the insights Axel
participants (3)
-
Axel Braun
-
İsmail Dönmez
-
Max Lin