[MacPorts] #44121: importing dolfin fails with "dynamic module does not define init function"

MacPorts noreply at macports.org
Mon Jun 23 02:52:00 PDT 2014


#44121: importing dolfin fails with "dynamic module does not define init function"
----------------------------------------+--------------------------------
 Reporter:  krishnamurthy.vijaykumar@…  |      Owner:  macports-tickets@…
     Type:  defect                      |     Status:  new
 Priority:  Normal                      |  Milestone:
Component:  ports                       |    Version:  2.3.0
 Keywords:                              |       Port:  dolfin
----------------------------------------+--------------------------------
 Hi,

 I did a port upgrade recently and dolfin was updated to version 1.4.

 On trying to


 {{{
 import dolfin
 }}}


 it fails with


 {{{
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/__init__.py", line 16, in <module>
     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("import %s" % module_name)
   File "<string>", line 1, in <module>
 ImportError: dynamic module does not define init function (initcommon)
 }}}


 I removed dolfin and reinstalled it from scratch. Same error again. I
 removed all the macports that I had installed and tried again. Same
 result.

 I do not understand what is happening, and would appreciate any help.

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


More information about the macports-tickets mailing list