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

Problems with running Fenics 2016.1.0

0 votes

I'm having troubles with the installation of Fenics 2016.1.0
(I'm on linux mint 17 Qiana, Kernel: 3.13.0-24-generic x86_64 (64 bit))

I followed the instructions on the download page of the fenicsproject. I've installed docker and then did:

curl -s https://get.fenicsproject.org | bash

I received the message

Successfully installed the fenicsproject script in
/home/me/.local/bin/fenicsproject.

To get started, run the command

fenicsproject run

For more information, see fenicsproject help.

so everything looks fine, but then, the command

fenicsproject run

gives me

fenicsproject: command not found

What am I doing wrong?

What I also don't understand, is why the information to run Fenics on this page:
http://fenics.readthedocs.io/projects/containers/en/latest/introduction.html#what-is-docker
is different than on the Fenicsproject page? Sorry, I never used docker, I am getting quite confused here with the new version of Fenics.

closed with the note: Please use the fenics-support mailing list for these types of questions
asked Aug 18, 2016 by Antoine FEniCS Novice (810 points)
closed Aug 23, 2016 by johannr

Can you try:

/home/me/.local/bin/fenicsproject run

Thanks, I get the following:

Cannot connect to the Docker daemon. Is the docker daemon running on
this host? Error: We strongly
advise against sharing your entire home directory
into a container. Instead, make a logical folder for each project:

                                                                                                              
mkdir /home/me/my-project                                                                                
                                                                                                               and then run the fenicsproject script there:                          


cd /home/me/my-project
fenicsproject

So that suggests that fenicsproject was installed correctly.

I think you need to start docker (something like "sudo service docker start", although the exact command depends on your linux distro) and try again.

It seems to work but I am worried about this message:

We strongly advise against sharing your entire home directory into a
container.

How can I know if I am sharing my home directory or not? I created this folder

mkdir /home/me/my-project
cd /home/me/my-project

but when I try

fenicsproject

in this folder I get

fenicsproject: command not found

So I did again

/home/me/.local/bin/fenicsproject run

and now it is working, but do you know if I am sharing my entire home directory or not in this way? Thanks.

I have another issue now, when I try the demo:

cd ~/demo/documented/poisson/python/
python demo_poisson.py

I get

Traceback (most recent call last): File "demo_poisson.py", line 37,
in module
from dolfin import *
ImportError: No module named dolfin

although I had

FEniCS stable version image

Welcome to FEniCS/stable!

This image provides a full-featured and optimized build of the stable
release of FEniCS.

To help you get started this image contains a number of demo programs.
Explore the demos by entering the 'demo' directory, for example

cd ~/demo/documented/poisson/python/
python demo_poisson.py
from dolfin import * 

not:

from dolfin import * Import

Ok I corrected my post, it was a copy/paste error, so the problem is still there.

...