On 2013-10-12 17:58, erwan liberge wrote:
Hello, 

I tried the macport version of Fenics.


Great!

I updated macport just after a first installation of dolfin. The error
was about conflict between 2.0.9 and 2.010 version of swig for the
module ufl. Consequently I uninstalled and reinstalled dolfin and had
the following error : 


Sounds like you had installed FEniCS previously, so check that you don't have any environment variables that point to your previously installed version.

What do you have in the directory:

    /opt/local/lib/python2.7/site-packages/dolfin/cpp

and what do

   > echo $PYTHONPATH
   > echo $DYLD_LIBRARY_PATH

return?

It is necessary (for now) to do:

    export PYTHONPATH=/opt/local/lib/python2.7/site-packages:$PYTHONPATH

but it looks like you did this. Do not 'source' dolfin.conf.

Garth


In [1]: from dolfin import *
---------------------------------------------------------------------------
ImportError                               Traceback
(most recent call last)
<ipython-input-1-f9fe29351801> in <module>()
----> 1 from dolfin import *

/opt/local/lib/python2.7/site-packages/dolfin/__init__.py in
<module>()
     14 
     15 # Import names from the compiled cpp modules
---> 16 import cpp
     17 from dolfin.cpp import *
     18 from dolfin.cpp import __version__, __swigversion__

/opt/local/lib/python2.7/site-packages/dolfin/cpp/__init__.py in
<module>()
     38 
     39     # Import the module
---> 40     exec("import %s" % module_name)
      41     module = globals()[module_name]
     42 

<string> in <module>()

ImportError: No module named common

Two version of swig are  installed ( the 2.0.9 and 2.0.10). The
active version is the 2.0.10.

Regards, 

--
Erwan
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to