It looks like it is loading DOLFIN from the system. Try to unset PYTHONPATH and maybe also LD_LIBRARY_PATH and see if it works:
unset PYTHONPATH unset LD_LIBRARY_PATH Johannes On Tue, Jul 7, 2015 at 11:21 AM Johannes Neumann <[email protected]> wrote: > Hi, > > I have just tried to install dolfin via the new hashdist script. I tried > both 1.5 and 1.6dev on openSUSE 12.3 and I always get > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > /Home/flow/neumann/.ipython/profile_default/startup/default.py in > <module>() > ----> 1 from dolfin import * > 2 import numpy as np > > > /usr/lib64/mpi/gcc/openmpi/lib64/python2.7/site-packages/dolfin/__init__.pyc > in <module>() > 37 > 38 # Imports from pure Python modules > ---> 39 from dolfin.functions import * > 40 from dolfin.common import * > 41 from dolfin.compilemodules import * > > > /usr/lib64/mpi/gcc/openmpi/lib64/python2.7/site-packages/dolfin/functions/__init__.py > in <module>() > 3 from dolfin.functions import functionspace > 4 from dolfin.functions import function > ----> 5 from dolfin.functions import constant > 6 from dolfin.functions import expression > 7 from dolfin.functions import specialfunctions > > > /usr/lib64/mpi/gcc/openmpi/lib64/python2.7/site-packages/dolfin/functions/constant.py > in <module>() > 27 # Import UFL and SWIG-generated extension module (DOLFIN C++) > 28 import ufl > ---> 29 import ufl.domains > 30 import dolfin.cpp as cpp > 31 import numpy > > ImportError: No module named domains > --------------------------------------------------------------------------- > It is the correct ipython and dolfin-version returns the expected > output. There is, however, already a dolfin 1.2 installed on that > system, which I can not change, as it is a compute cluster. I ran > accross this problem once already when I had an old package of a > deprecated package from 1.2 installed. Is there a way to find the root > of this problem and also a user lever option to solve this? > > Thanks, > Johannes > > -- > Dipl.-Math. Johannes Neumann > Weierstraß-Institut für Angewandte > Analysis und Stochastik > Mohrenstraße 39 > 10117 Berlin > Tel. +49 (0)30 20372 567 > > _______________________________________________ > fenics-support mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics-support >
_______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
