This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Problem to import dolfin intalled on macport

0 votes

Hello to all:

my problem is for import dolfin module in a habitual project. This package was installed from macport in osx yosemite

sudo port install dolfin

import dolfin as df

to try use the dolfin module a got the next message

 Traceback (most recent call last):
 File "/Users/leonardojofre/Documents/mpi4py course/ejemplos petsc/example00001.py", line7, in <module>
 import dolfin as df
 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>
 ImportError: cannot import name common

it is a installation problem or is a bug?

thanks to all

closed with the note: Please report the problem on the MacPorts bug tracker.
asked Mar 26, 2015 by ljofre FEniCS Novice (720 points)
closed Mar 27, 2015 by johannr
...