Hi Johannes, Yes, I have that in my PYTHONPATH. The variable looks like this: export PYTHONPATH=/fenics/1.2.0/lib/python2.6/site-packages:/fenics/1.2.0/lib64/python2.6/site-packages:/fenics/1.2.0/lib64/python2.6/site-packages/dolfin
The last entry in the PYTHONPATH is there because python complained about "import common" (it should be unnecessary). There's nothing in the site-packages directory of my installation that creates classes parameters or MPI. Does your installation have files parameters.py, MPI.py, or does your dolfin/cpp module have classes defined "parameters" and "MPI"? I think I'm missing something in my installation, but I don't know how to get it. Chuck ----- Original Message ----- > From: "Johannes Ring" <[email protected]> > To: "Charles Henry" <[email protected]> > Cc: [email protected] > Sent: Tuesday, November 5, 2013 7:06:58 AM > Subject: Re: [FEniCS-support] Ho do I add python modules "parameters, > Parameters, and MPI" from dolfin.cpp? > > On Fri, Nov 1, 2013 at 3:36 PM, Charles Henry <[email protected]> wrote: > > I'm have completed the dolfin-1.2.0 compilation, but now I cannot run a > > program. All programs I try are failing, for lack of python modules > > "parameters, Parameters, MPI". The following error occurs when I try to > > run "demo_biharmonic.py": > > > > File > > "/fenics/1.2.0/lib64/python2.6/site-packages/dolfin/common/globalparameters.py", > > line 27, in < module> > > from dolfin.cpp import parameters, Parameters, MPI > > ImportError: cannot import name parameters > > It looks like your PYTHONPATH needs an update. What is your current > PYTHONPATH, i.e. the output of "echo $PYTHONPATH"? My guess is that > you need to add /fenics/1.2.0/lib/python2.6/site-packages to > PYTHONPATH. Try > > export PYTHONPATH=/fenics/1.2.0/lib/python2.6/site-packages:$PYTHONPATH > > and see if that helps. > > Johannes > _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
