<div dir="ltr"><div>Hi Nicolas,</div><div><br></div><div>Thanks for reporting this.  The code that is raising the exception should never be executed under Python 3, since Python 3 doesn't have a "dl" module.</div><div><br></div><div>Can you try importing the "dl" and "DLFCN" modules?  Under Python 3, both should fail to load, and if they do load, then something is wrong and have to find out where Python is finding them.</div><div><br></div><div>For example, under Python 2.7:</div><div><br></div><div><div> python</div><div> Python 2.7.13 (default, Feb 20 2017, 20:23:30) </div><div> [GCC 4.4.7] on linux2</div><div> Type "help", "copyright", "credits" or "license" for more information.</div></div><div><div> >>> import dl</div><div> >>> print dl.__file__</div><div> /usr/local/lib/python2.7/lib-dynload/dl.so</div><div> >>> import DLFCN</div><div> >>> print DLFCN.__file__</div><div> /usr/local/lib/python2.7/plat-linux2/DLFCN.pyc</div></div><div><br></div><div><br></div><div>But under Python 3, you should see this:<br></div><div><br></div><div> python3</div><div> Python 3.5.1 (v3.5.1:37a07cee5969, Dec  5 2015, 21:12:44) </div><div> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin</div><div> Type "help", "copyright", "credits" or "license" for more information.</div><div> >>> import dl</div><div> Traceback (most recent call last):</div><div>   File "<stdin>", line 1, in <module></div><div> ImportError: No module named 'dl'</div><div> >>> import DLFCN</div><div> Traceback (most recent call last):</div><div>   File "<stdin>", line 1, in <module></div><div> ImportError: No module named 'DLFCN'</div><div class="gmail_extra"><br></div><div class="gmail_extra">Let me know what the results are.</div><div class="gmail_extra"><br></div><div class="gmail_extra"> - David</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 10:39 AM, Nicolas Cedilnik <span dir="ltr"><<a href="mailto:nicolas.cedilnik@inria.fr" target="_blank">nicolas.cedilnik@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Following a reboot after some system updates, I cannot "import vtk" anymore:<br>
<br>
$ python<br>
<br>
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32)<br>
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
import vtk<br>
</blockquote></blockquote></blockquote>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/opt/ncedilni/miniconda3.6/en<wbr>vs/vtscan/lib/python3.6/site-<wbr>packages/vtk/__init__.py", line 38, in <module><br>
    sys.setdlopenflags(dl.RTLD_NOW<wbr>|dl.RTLD_GLOBAL)<br>
AttributeError: module 'dl' has no attribute 'RTLD_NOW'<br>
<br>
Google wasn't very helpful, so I'm posting here… I'm running Fedora 26, python 3.6 binaries with miniconda and vtk 7.1.1 installed from the conda-forge repository.<br>
<br>
How did I break my VTK install?<br>
<br>
Should I file a bug report somewhere?<br>
<br>
Thanks for your help,<br>
<br>
-- Nicolas<br></blockquote></div></div></div>