[Libreoffice-bugs] [Bug 133123] Python module uno.py overrides import, resulting in failure of subsequent import cairosvg module

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 23 09:09:37 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=133123

Kevin Suo <suokunlong at 126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Kevin Suo <suokunlong at 126.com> ---
I can reproduce this bug with the following steps:

1. Install cairosvg with pip.

2. start ipython interactive console:
> $ PYTHONPATH=/home/suokunlong/build/lo/master/instdir/program/ ipython3

3. Import cairosvg before importing uno:

> In [1]: import cairosvg                                                         
> In [2]: import uno
> In [4]: sys.modules["_elementtree"]                                             
> Out[4]: <module '_elementtree' from '/usr/lib64/python3.8/lib-dynload/_elementtree.cpython-38-x86_64-linux-gnu.so'>

4. Import cairosvg after importing uno:

> In [1]: import uno
> In [2]: import cairosvg
> AttributeError: 'NoneType' object has no attribute '__dict__'
> In [3]: import sys                                                              
> In [4]: sys.modules["_elementtree"]
> (None)

Fedora 32, master build as of today.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201023/a50458f8/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list