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

fenics installation from source and anaconda

0 votes

Dear all,

I need to install Fenics on a linux cluster where I don't have root access. For this reason I've tried to install it both via Anaconda and from source.
In the first case, the installation succeeds apparently, but then when I try to run even one of tests documented, for example, the error message that I get is the following:

*** Error: Unable to perform just-in-time compilation of form.
*** Reason: DOLFIN was not compiled against matchingUFC from current FFC installation..
*** Where: This error was encountered inside jit.py.

So I've tried to install it from source, following the steps which are defined on the webpage. Also in this case, when I'm at the step of running the installation of the ffc package, I get an error:

pip install . --prefix="/my/local/path/to/fenics"
....
Could not find a version that satisfies the requirement fiat==2017.1.0.dev0 (from FFC==2017.1.0.dev0) (from versions: )
No matching distribution found for fiat==2017.1.0.dev0 (from FFC==2017.1.0.dev0)

I've tried to change various path variables to be sure that it finds the folder where fiat is supposed to be, but this doesn't change the outcome of the error message.

I've searched through the other questions and on google, but I couldn't find anything really helpful in both cases.

Thanks a lot in advance for your support and help,
C. B.

asked May 5, 2017 by cbrel FEniCS Novice (150 points)

1 Answer

+1 vote
 
Best answer

The first issue looks like it is picking up an older/incompatible version of FFC/UFC. This is likely installed either locally or system-wide on the cluster. If it is installed locally you can either try to remove it or make sure that it is not accessible when running FEniCS from anaconda.

The second issue should be fixed by upgrading pip and setuptools.

answered May 5, 2017 by johannr FEniCS Expert (17,350 points)
selected May 5, 2017 by cbrel

Thank you a lot for the quick answer, indeed I had a conflicting older version of ffc in my hidden .local folder.
Now it seems to work.

Actually, regarding the second issue, it doesn't seem helpful the upgrade of pip and setuptools. After having done so, the error message remains the same.

Is there another possible way to fix it?

Thank you

...