[MacPorts] #47300: dolfin: ImportError: cannot import name common (was: Problem to import dolfin intalled on macport)

MacPorts noreply at macports.org
Sun Mar 29 00:07:00 PDT 2015


#47300: dolfin: ImportError: cannot import name common
---------------------------+--------------------
  Reporter:  ljofre2146@…  |      Owner:  sean@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.3.3
Resolution:                |   Keywords:
      Port:  dolfin        |
---------------------------+--------------------
Changes (by ryandesign@…):

 * component:  contrib => ports
 * priority:  High => Normal
 * owner:  macports-tickets@… => sean@…
 * keywords:  dolfin, python =>


Old description:

> 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

New description:

 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#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list