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

2016.2 Expression problem ? (Conda install)

0 votes

Hi all,

Is there a problem with recent update 2016.2 about the Expression class ?

For example:

s = Expression('cos(x[0])*sin(x[1])', degree = 2)

returns an error. I'm also having trouble with Expression subclass in python. Is that common to any other user ?

Thanks a lot,

JayC

asked Dec 7, 2016 by JayC FEniCS Novice (210 points)
edited Dec 7, 2016 by JayC

Could you be more precise? So:
1) How do you use FEniCS? (Docker image/desktop installation/...)
2) Which error do you get?

Thanks for your quick answer.

I'm using Fenics 2016.2, installed with conda. My Python version is 3.5.

code:
mesh = UnitSquareMesh(10, 10)
V = FunctionSpace(mesh, 'Lagrange', 2)
s = Expression('cos(x[0])*cos(x[1])', degree = 2)

error:
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/local/me/.cache/instant/python3.5/error/dolfin_5bc53b03da7acb3e2d4733ebf3b5ee3b6e55581b/compile.log'

Is that helpful ?

I tried the same instructions in Docker setup, it works fine.

We need to see the contents of compile.log to be able to help you. Did you use the fenics packages in conda-forge? They are AFAICT not updated to the 2016.2 release.

Thanks for your answer. I'm indeed using fenics 2016.2.dev for py35_3 from conda_forge. Shall i upload this file anyway ?

Ok, that is not the real 2016.2 release, but a one month old development version. It is probably better to report this as an issue on the fenics-feedstock.

Well yes, I am interested in the compile.log file. Maybe you can tell me if you face the same error in the log file as here. Since I faced and solved a similar issue as reported there a few weeks ago.

...