[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#825962: libreoffice: crashes when trying to get the python macro menu if uno-0.3.3 has been installed with pip



retitle 825962 libreoffice: PyUNO-using functionality crash if unrelated uno-0.3.3 has been installed with pip
tag 825962 + confirmed
tag 825962 + wontfix
thanks

Hi,

On Tue, Jun 07, 2016 at 10:09:35AM +0200, Rene Engelhard wrote:
> On Wed, Jun 01, 2016 at 11:45:47PM +0200, Florian wrote:
> > Well, whatever the uno 0.3.3 module is made for, it still causes
> > libreoffice to crash when installed, so maybe libreoffice gets confused
> > by the names too ;)
> 
> Well, sure. LO does import uno; at places because that's what python3-uno is.

$ grep -r "import uno" *
program/wizards/letter/CallWizard.py:import unohelper
program/wizards/web/CallWizard.py:import unohelper
program/wizards/web/StatusDialog.py:import uno
program/wizards/web/ImageListDialog.py:import uno
program/wizards/web/FTPDialog.py:import uno
program/wizards/agenda/TopicsControl.py:import uno
program/wizards/agenda/CallWizard.py:import unohelper
program/wizards/agenda/AgendaDocument.py:import uno
program/wizards/document/OfficeDocument.py:import uno
program/wizards/common/Desktop.py:import uno
program/wizards/common/Configuration.py:import uno
program/wizards/common/Resource.py:#import uno before importing from VclWindowPeerAttribute
program/wizards/common/Resource.py:import uno
program/wizards/common/UCB.py:import uno
program/wizards/ui/WizardDialog.py:import uno
program/wizards/ui/UnoDialog.py:import uno
program/wizards/ui/event/DataAware.py:import uno
program/wizards/ui/event/CommonListener.py:import unohelper
program/wizards/ui/event/UnoDataAware.py:import uno
program/wizards/ui/event/SimpleDataAware.py:import uno
program/wizards/ui/ImageList.py:import uno
program/wizards/fax/CallWizard.py:import unohelper
program/wizards/text/TextSectionHandler.py:import uno
program/wizards/text/TextDocument.py:import uno

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		Wizards :)

program/pythonloader.py:import uno
program/pythonloader.py:import unohelper
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PyUNO itself.

program/pythonscript.py:import uno
program/pythonscript.py:import unohelper
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		Script Provider for Python.

program/officehelper.py:import uno
program/msgbox.py:import uno, unohelper
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
			PyUNO itself again

program/mailmerge.py:import unohelper
program/mailmerge.py:import uno
share/Scripts/python/pythonSamples/TableSample.py:import uno
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		examples and mail merge functionality.

Just checked it; as expected the wizard also "crashes".

> Some new module being named "uno" when PyUNO for OOo/LO exist since AGES
> (separate first and integrated in OpenOffice.org proper in 1.1.x. Which was
> 2003....
> 
> Asked upstream about whether it can be safe-guarded somehow, but TBH the
> author of that uno-0.3.3 simply did it wrong by steping on OOo/LOs namespace.

I am seriously pondering to jus close this "bug" - it makes no sense to keep
this open here for infinity, and we can't do anything here.
There's no bug in LO; if there was a bug the bug is that uno-0.3.3 exists
(well, is named "uno").

Regards,

Rene


Reply to: