Cannot plot after new installation

Asked by Jack

After installing, on running the Hyperelasticity demo, plotting fails. This is the error:

Plotting u (a function), press 'q' to continue...
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/viper", line 225, in <module>
    _newmain()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/viper", line 220, in _newmain
    p = __main(infile, lutfile, mode, title)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/viper", line 152, in __main
    return _plot_mesh(infile, lutfile, mode, title)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/viper", line 116, in _plot_mesh
    import dolfin
ImportError: No module named dolfin
*** Warning: Unable to plot.

Jack

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

Did you source the file <CMAKE_INSTALL_PREFIX>/share/dolfin/dolfin.conf after installing DOLFIN as noted in the post-install message? How did you install FEniCS? Did you use Dorsal? If not, I will suggest that you try that.

Revision history for this message
Jack (attacking-chess) said :
#2

Hi Johannes

Yes, I did. I installed it via Dorsal except for DOLFIN, which I had to make manually because boost.thread wasn't being found.

Jack

Revision history for this message
Andre Massing (massing) said :
#3

Den 15.11.10 23.43, skrev Jack:
> Question #133903 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/133903
>
> Status: Answered => Open
>
> Jack is still having a problem:
> Hi Johannes
>
> Yes, I did. I installed it via Dorsal except for DOLFIN, which I had to
> make manually because boost.thread wasn't being found.
>
> Jack
>
Somehow your dolfin python module can either not be found or loaded, so
can you check
1. your PYTHONPATH variable (what is it?) It should
contain to the <INSTALLATIONPATH>/lib/python2.6/site-packages (or
python2.x depending on your
version)
2. what happens if you import dolfin within a running interactive python
instance?
--
Andre

Can you help with this problem?

Provide an answer of your own, or ask Jack for more information if necessary.

To post a message you must log in.