Opened 7 years ago
Closed 7 years ago
#4924 closed enhancement (fixed)
update omc dependencies: python-beautifulsoup
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | *unknown* | Version: | |
Keywords: | python | Cc: |
Description
I just installed OpenModelica on a fresh Xubuntu 18.04 LTS virtual box, instructions worked as expected.
But I noted that after installing everything, I also had python 2.7 installed, even though I am 99% sure it was NOT installed before (only python3 was installed). I believe that is due to omc depending on the package python-beautifulsoup
(status is recommends, not depends, but recommended packages also get installed by default it seems).
So, could you please check whether this is true and if so please update (for 18.04 users) that dependency, e.g. from python-beautifulsoup
to python3-bs4
!?
That would also be an update from beautifulsoup version 3 to version 4, not sure what changed.
There are bs4 packages available for both py2 and py3.
Or, move beautifulsoup and python into a package on its own, omdocs or something, as I understand it is only used for generating the docs (but my understanding is very limited, sorry).
Note to myself, some terminal commands:
apt-cache depends openmodelica apt-cache depends omc apt-cache depends python-beautifulsoup apt-cache search beautifulsoup apt-cache depends python3-bs4
Change History (5)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
python-bs4 depends on python2.7 and having a dependency python-bs4 | python3-bs4 will install python2.7 if python3-bs4 is not installed. So I changed it from recommends to suggests:
comment:3 by , 7 years ago
If I understand the output on my machine (Xubuntu 18.04) correctly,
python-bs4 depends on python:any while
python-beautifulsoup depends on python2.7
comment:4 by , 7 years ago
Look closer (apt-cache show python-bs4):
Depends: python:any (<< 2.8), python:any (>= 2.7.5-5~)
This package contains BeautifulSoup 4, for Python 2.x.
python:any means any CPU architecture, right? (Not any Python version)
comment:5 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks, makes sense. I'll close this, and if I want a minimal installation I will not use the OpenModelica meta package, but just omc.
PS: Some of my posts were detected as spam, but your recaptcha does not work anymore.
PPS: Google mail is frequently putting updates from Trac into spam.
Test: Is this still detected as spam if I add more text??
Sorry, it seems it was the 1%.
Grepping the dpkg.log for what was installed when, I see that python 2.7 was already installed.
Still, depending on how much work that would be, it might make sense to upgrade from beautifulsoup3 to 4, because it seems that the
python-bs4
package does not depend on a certain python version.