Skip to content
Snippets Groups Projects
Andreas Radke's avatar
Robin Candau's avatar
  • fbb5e858 · upgpkg: 25.2.1-3: Poppler 25.03.0 rebuild
Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Thank to you too! As a final comment, to those who might find this thread interesting, it may be worth pointing to PEP 394 (https://peps.python.org...

Toolybird's avatar
closed issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh
Toolybird's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Thanks for the report (and the discussion!). I can see where you're coming from.. however, the basis for the gripe appears to be self-inflicted. It...

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Note that according to chatgpt (I do not know how reliable it is on this, but it was quick), some distros (RedHat, Debian) make an explicit effort ...

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

In any case, I am happy with my LibO workaround. I would just like to share knowledge of this issue and of the workaround, since it would have save...

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

The #!/usr/bin/env is mostly a trick (some say a tiny abuse of env that was originally intended to change the environment) used to make scripts mo...

Doug Newgard's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

No, most use /usr/bin/env python...

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

No, it is specifically a LibO issue....

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

To work around the issue, it is enough to create a .local/bin/libreoffice executable file with:...

Doug Newgard's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Also note that this isn't a LO issue, it would affect nearly every python program in the repos.

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Obviously, another way to fix the issue is to build libreoffice like upstream does, with its own embedded python runtime, but it seems a bit of a w...

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Why not, if Libreoffice can only work with the python it has been built against and no other?...

Doug Newgard's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

No, YOU made the choice to override the system python, the script should not disregard that choice

Sergio Callegari's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

Not that normal. I would expect libreoffice to know which python it has been built against and use that one regardless of the virtual environment. ...

Doug Newgard's avatar
commented on issue #8 "Arch build of libreoffice fails in subtle ways if started from a terminal where a python virtual environment is active" at Arch Linux / Packaging / Packages / libreoffice-fresh

So you're overriding the system python then surprised when things break? Sounds pretty normal to me.