[MacPorts] #51882: dolfin ImportError: No module named _common

MacPorts noreply at macports.org
Wed Jul 20 11:16:29 PDT 2016


#51882: dolfin ImportError: No module named _common
--------------------------------+--------------------------------
 Reporter:  sarah_frank@…       |      Owner:  macports-tickets@…
     Type:  defect              |     Status:  new
 Priority:  Normal              |  Milestone:
Component:  ports               |    Version:  2.3.4
 Keywords:  dolfin importerror  |       Port:  dolfin
--------------------------------+--------------------------------
 After installing dolfin through macports, I am unable to use it
 successfully. I get an error after importing:


 {{{
 >>> import dolfin
 >>> Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/__init__.py", line 16, in <module>
     from . import cpp
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/cpp/__init__.py", line 42, in <module>
     exec("from . import %s" % module_name)
   File "<string>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/cpp/common.py", line 25, in <module>
     _common = swig_import_helper()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/cpp/common.py", line 24, in swig_import_helper
     return importlib.import_module('_common')
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py",
 line 37, in import_module
     __import__(name)
 ImportError: No module named _common
 }}}


 It appeared that someone else had similar problems but it looked like they
 uninstalled and reinstalled macports to fix, but after trying a few
 different things and then uninstalling and reinstalling macports I am
 still getting the same error message.

-- 
Ticket URL: <https://trac.macports.org/ticket/51882>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list