This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to import DOLPHIN modules in Python?

0 votes

Hello,

I installed FEniCS v1.2.0 on my machine (macOS 10.6) with the binary bundle.

When I try to run the demos, it works just fine by cd to any python demo directory and then doing :

 python demo_something.py

However, when I try to run the simplest code ever, but that I wrote mysel and which is not a demo :

 from dolphin import *
 print("Hello World")

I invariably get the following error :

ImportError: No module named dolphin

Has anyone met this situation before? Would someone know where that comes from? How to solve this? I feel it's pretty basic but I can't figure out what is wrong.

asked Mar 2, 2016 by Hadrien FEniCS Novice (180 points)

1 Answer

+4 votes
 
Best answer

It's dolfin not dolphin

answered Mar 3, 2016 by chris_richardson FEniCS Expert (31,740 points)
selected Mar 3, 2016 by Hadrien
...