[MacPorts] #44121: importing dolfin fails with "dynamic module does not define init function"
#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
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Changes (by sean@…): * status: new => assigned * cc: openmaintainer@…, krishnamurthy.vijaykumar@… (removed) * owner: macports-tickets@… => sean@… Comment: You don't need to CC yourself if you're the ticket reporter, fyi. I've seen this before but can't remember exactly what caused it. I'll try to reproduce on my machine. -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Changes (by mf2k@…): * cc: sean@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Comment (by sean@…): Ok, I can reproduce this. I wonder what changed. Looking into it now. -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Comment (by sean@…): Looks like this is a bug with CMake 3.0.0: http://public.kitware.com/Bug/view.php?id=14990 -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Comment (by krishnamurthy.vijaykumar@…): Replying to [comment:5 sean@…]:
Looks like this is a bug with CMake 3.0.0: http://public.kitware.com/Bug/view.php?id=14990
OK. Thanks. Should I then wait for a fix? Or would you suggest using a different version of cmake to build fenics? -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Changes (by sean@…): * cc: css@… (added) Comment: Replying to [comment:6 krishnamurthy.vijaykumar@…]:
Replying to [comment:5 sean@…]:
Looks like this is a bug with CMake 3.0.0: http://public.kitware.com/Bug/view.php?id=14990
OK. Thanks. Should I then wait for a fix? Or would you suggest using a different version of cmake to build fenics?
It seems that CMake 3.0.1 will have the fix but that will be released in a few weeks. I guess I would suggest the CMake port include this patch from upstream and then dolfin would work again. css, would you be ok with including this patch temporarily until 3.0.1 is out? -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Comment (by krishnamurthy.vijaykumar@…): Any update on this? My work is completely stalled. Could you tell me if I could just use the patch on my machine and get dolfin working? -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+---------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: dolfin | -----------------------------------------+---------------------- Comment (by sean@…): Replying to [comment:8 krishnamurthy.vijaykumar@…]:
Any update on this? My work is completely stalled.
Could you tell me if I could just use the patch on my machine and get dolfin working?
Yes, if you patch the files in cmake (from the bug report) and rebuild dolfin, then this will work. I'll push an update later today as well. -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+-------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: fixed | Keywords: Port: dolfin | -----------------------------------------+-------------------- Changes (by sean@…): * status: assigned => closed * resolution: => fixed Comment: Ok, I just pushed the fixes in r121636. -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#44121: importing dolfin fails with "dynamic module does not define init function" -----------------------------------------+-------------------- Reporter: krishnamurthy.vijaykumar@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: fixed | Keywords: Port: dolfin | -----------------------------------------+-------------------- Comment (by krishnamurthy.vijaykumar@…): Thanks Sean. This seems to be working. -- Ticket URL: <https://trac.macports.org/ticket/44121#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts