[MacPorts] #47300: Problem to import dolfin intalled on macport

MacPorts noreply at macports.org
Sat Mar 28 23:40:03 PDT 2015


#47300: Problem to import dolfin intalled on macport
----------------------------+--------------------------------
 Reporter:  ljofre2146@…    |      Owner:  macports-tickets@…
     Type:  defect          |     Status:  new
 Priority:  High            |  Milestone:
Component:  contrib         |    Version:  2.3.3
 Keywords:  dolfin, python  |       Port:  dolfin
----------------------------+--------------------------------
 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

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


More information about the macports-tickets mailing list