<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:suokunlong@126.com" title="Kevin Suo <suokunlong@126.com>"> <span class="fn">Kevin Suo</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Python module uno.py overrides import, resulting in failure of subsequent import cairosvg module"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133123">bug 133123</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Python module uno.py overrides import, resulting in failure of subsequent import cairosvg module"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133123#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Python module uno.py overrides import, resulting in failure of subsequent import cairosvg module"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133123">bug 133123</a>
              from <span class="vcard"><a class="email" href="mailto:suokunlong@126.com" title="Kevin Suo <suokunlong@126.com>"> <span class="fn">Kevin Suo</span></a>
</span></b>
        <pre>I can reproduce this bug with the following steps:

1. Install cairosvg with pip.

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

3. Import cairosvg before importing uno:

<span class="quote">> 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'></span >

4. Import cairosvg after importing uno:

<span class="quote">> 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)</span >

Fedora 32, master build as of today.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>