error importing stfio

Skip to first unread message

Jun 1, 2015, 6:53:19 PM6/1/15

Thank you very much for making the stfio library available; it has been very useful and working great so far. Recently, I started getting the error below when importing it. I think this occurred after a macports upgrade. I am sure I have something configured wrong with macports or python. If you could help me figure it out, I would really appreciate it. I'm using OSX Yosemite and Python 3.4.

Thank you,


$ python

Python 3.4.3 (default, May 25 2015, 18:48:21) 

[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import stfio

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stfio/", line 6, in <module>

    from .stfio import *

  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stfio/", line 33, in <module>

    _stfio = swig_import_helper()

  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stfio/", line 29, in swig_import_helper

    _mod = imp.load_module('_stfio', fp, pathname, description)

  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/", line 243, in load_module

    return load_dynamic(name, filename, file)

ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stfio/, 2): Symbol not found: __ZNKSt3__19basic_iosIcNS_11char_traitsIcEEE5widenEc

  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stfio/libstfio.dylib

  Expected in: flat namespace

 in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stfio/libstfio.dylib

Christoph Schmidt-Hieber

Aug 14, 2015, 7:54:45 AM8/14/15
to stimfit
Sorry for the late reply - for some reason the group posts weren't forwarded to my email.

At any rate could you please try the following:

sudo port selfupdate
sudo port upgrade -u outdated

There was a problem in one of the dependencies that has been fixed in the meantime.
Reply all
Reply to author
0 new messages