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

FEniCS run from Docker under Windows, how to use Spyer

+1 vote

I installed FEniCS and I am able to run files, e.g. the Tutorial, from the Docker Toolbox Terminal.

When I try to use Spyder to run the same file I get this error:
runfile('C:/Users/r.grc/fenics/ft01_poisson.py', wdir='C:/Users/r.grc/fenics')
Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/r.grc/fenics/ft01_poisson.py', wdir='C:/Users/r.grc/fenics')

File "C:\Users\r.grc\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile
execfile(filename, namespace)

File "C:\Users\r.grc\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 88, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)

File "C:/Users/r.grc/fenics/ft01_poisson.py", line 13, in
from fenics import *

ImportError: No module named 'fenics'

My (limited) experience tells me I would have to set some path in Spyder - but that doesn't seem to work for the Docker images. What do I need to do?

asked Mar 15, 2017 by c2thes FEniCS Novice (150 points)

1 Answer

0 votes

I think the problem is that Fenics is only installed in the docker container. Have you tried to run Spyder from within the container? My experience in this field is however also quite limited.

answered Mar 15, 2017 by Sebi9496 FEniCS Novice (290 points)
...