[Bug 1089065] New: python dependency problem during LaTeX installation
http://bugzilla.suse.com/show_bug.cgi?id=1089065 Bug ID: 1089065 Summary: python dependency problem during LaTeX installation Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: abergmann@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I tried to install LaTex inside an openSUSE Leap 42.3 docker container and came across the following error: How to reproduce: #> docker pull opensuse #> docker run -it --rm --hostname latex opensuse /bin/bash Now during the latex installation the following error shows up: #latex> zypper in texlive-latex ... (197/197) Installing: texlive-currfile-2016.122.0.0.7csvn40725-24.5.noarch [done] Running: fonts-config-20150424-6.3-reconfigure-fonts (fonts-config, /var/adm/update-scripts) Running: fonts-config-20150424-6.3-reconfigure-fonts (fonts-config, /var/adm/update-scripts) [done] Running: fonts-config-20150424-6.3-reconfigure-cjk-fonts (fonts-config, /var/adm/update-scripts) Running: fonts-config-20150424-6.3-reconfigure-cjk-fonts (fonts-config, /var/adm/update-scripts) [done] Running: texlive-kpathsea-2016.122.svn41139-25.5-zypper (texlive-kpathsea, /var/adm/update-scripts) /bin/sh: /var/adm/update-scripts/texlive-kpathsea-2016.122.svn41139-25.5-zypper: /usr/bin/python: bad interpreter: No such file or directory Command exited with status 126. Abort, retry, ignore? [a/r/i] (a): The script that cannot be executed is this: #> ls -lh /var/adm/update-scripts/texlive-kpathsea-2016.122.svn41139-25.5-zypper /var/adm/update-scripts/texlive-kpathsea-2016.122.svn41139-25.5-zypper -> /usr/share/texmf/texconfig/zypper.py #> rpm -qf /usr/share/texmf/texconfig/zypper.py texlive-filesystem-2016.108-21.1.noarch #> head -n1 /usr/share/texmf/texconfig/zypper.py #!/usr/bin/python The problem gets triggered via texlive-filesystem that has only a "Requires: python". Because python3 has a "Provides: python" it gets installed. Unfortunately python3 has no link/binary called python. One way to fix this is a seperate "Requires(pre): /usr/bin/python" inside the texlive-filesystem.spec file. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@suse.com Assignee|werner@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com --- Comment #1 from Dr. Werner Fink <werner@suse.com> --- (In reply to Alexander Bergmann from comment #0)
#> rpm -qf /usr/share/texmf/texconfig/zypper.py texlive-filesystem-2016.108-21.1.noarch
#> head -n1 /usr/share/texmf/texconfig/zypper.py #!/usr/bin/python
The problem gets triggered via texlive-filesystem that has only a "Requires: python". Because python3 has a "Provides: python" it gets installed. Unfortunately python3 has no link/binary called python.
One way to fix this is a seperate "Requires(pre): /usr/bin/python" inside the texlive-filesystem.spec file.
I'd like to know why this has become a TeXLive bug. If python3 provides python3 then it should provide /usr/bin/python ... that looks like a simple approach of update-alternatives here -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c2 Alexander Bergmann <abergmann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abergmann@suse.com, | |tchvatal@suse.com --- Comment #2 from Alexander Bergmann <abergmann@suse.com> --- Yes, I agree. Using update-alternatives for python would be perfect (also for ruby that suffers the same kind of issues). We had some discussions about the hole python/python3 situation on the mailing list: https://lists.opensuse.org/opensuse-factory/2017-06/msg00740.html Adding Tomas as the python maintainer. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c3 --- Comment #3 from Tomáš Chvátal <tchvatal@suse.com> --- There is no plan to provide update-alternatives for python binary, mostly because of compatibility concerns. /usr/bin/python and /usr/bin/python2 will be provided by python2 while /usr/bin/python3 will be provided by python3. The provides python is done for migration purposes only and should still let you keep the old python2. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c4 --- Comment #4 from Stephan Kulow <coolo@suse.com> --- So the provides of python is clearly a problem. But nonethless: this won't change for leap 42.3 as it would open the too big can of worms. For 42.3 the only option is changing the require in texlive to /usr/bin/python - for tumbleweed I think these scripts are already gone? If not, using /usr/bin/python3 in the script and as require is the road to go. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c5 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@suse.com Assignee|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | --- Comment #5 from Stephan Kulow <coolo@suse.com> --- I think if the python scripts are gone for tumbleweed, we should resolv this as WONTFIX. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c6 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #6 from Dr. Werner Fink <werner@suse.com> --- (In reply to Stephan Kulow from comment #5)
I think if the python scripts are gone for tumbleweed, we should resolv this as WONTFIX.
There are gone ... nevertheless providing "python" without /usr/bin/python is a bug IMHO -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089065 http://bugzilla.suse.com/show_bug.cgi?id=1089065#c7 --- Comment #7 from Alexander Bergmann <abergmann@suse.com> --- I've just noticed that python-pip, python-setuptools, python3-pip and python3-setuptools are using update-alternatives. Why would this approach result in compatibility problems? Users that install python3 + pip on a system where they have python2 already will have a totally messed up environment. /usr/bin/python -> python2.7 /usr/bin/pip -> /etc/alternatives/pip -> /usr/bin/pip3.4 So it is also my opinion that this is a bug. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com