Opened 9 years ago

Last modified 9 years ago

#47300 closed defect

dolfin: ImportError: cannot import name common — at Version 1

Reported by: ljofre2146@… Owned by: sean@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: dolfin

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

when I try use the dolfin module I got the next message

import dolfin as df
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

Change History (1)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Component: contribports
Description: modified (diff)
Keywords: dolfin python removed
Owner: changed from macports-tickets@… to sean@…
Priority: HighNormal
Summary: Problem to import dolfin intalled on macportdolfin: ImportError: cannot import name common
Note: See TracTickets for help on using tickets.