On Wed, Feb 12, 2014 at 3:47 PM, Fa-Gung Fan <[email protected]> wrote: > Hi Fenics Users and Developers: > > I tried the CFD cases in the downloaded package "cbc.pdesys-1.0.0.tar.gz", > and got ImportError message such as the following one. I have not used > Python before, and don't know where to fix it. Can you please help? > Thanks. > > Fa-Gung Fan > > > In [2]: run Lshape.py > ------------------------------ > --------------------------------------------- > ImportError Traceback (most recent call last) > /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in > execfile(fname, *where) > 173 else: > 174 filename = fname > --> 175 __builtin__.execfile(filename, *where) > > /home/ffan/cbc/cfd/problems/Lshape.py in <module>() > 4 __license__ = "GNU GPL version 3 or any later version" > 5 > ----> 6 from NSProblem import * > 7 > 8 class Submesh(SubDomain): > > /home/ffan/cbc/cfd/problems/NSProblem.py in <module>() > 6 Base class for all Navier-Stokes problems. > 7 """ > ----> 8 from cbc.pdesys.Problem import * > 9 > 10 problem_parameters = copy.deepcopy(default_problem_parameters) > > ImportError: No module named cbc.pdesys.Problem
In the cbc.pdesys-1.0.0 directory, run export PYTHONPATH=$PWD:PYTHONPATH to set the PYTHONPATH correctly. Johannes _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
