(Deleted) Error with Expression() in 2018.1.0?

4 weeks ago by

I don't know if my problem is related, but I didn't have this problem in version 2017.2.0. I've installed FEniCS 2018.1.0 from conda-forge and set up the Anaconda environment and everything seems to install without a hitch. However, when I try to run the following code:
from dolfin import *
a = Expression('3.0*b', b=1.0, degree=1)​​

I end up getting the following error:
------------------- Start compiler output ------------------------
Undefined symbols for architecture x86_64:
"dolfin::Expression::compute_vertex_values(std::vector<double, std::allocator<double> >&, dolfin::Mesh const&) const", referenced from:
vtable for dolfin::dolfin_expression_94cead74491a43531080b87af35df474 in ccCQ4099.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

------------------- End compiler output ------------------------
Compilation failed! Sources, command, and errors have been written to: /Users/Dan/jitfailure-dolfin_expression_94cead74491a43531080b87af35df474
Traceback (most recent call last):
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/jit/jit.py", line 167, in compile_class
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/jit/jit.py", line 47, in mpi_jit
return local_jit(*args, **kwargs)
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/jit/jit.py", line 103, in dijitso_jit
return dijitso.jit(*args, **kwargs)
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dijitso/jit.py", line 217, in jit
% err_info['fail_dir'], err_info)
dijitso.jit.DijitsoError: Dijitso JIT compilation failed, see '/Users/Dan/jitfailure-dolfin_expression_94cead74491a43531080b87af35df474' for details​

​I found another post that describes how pybind11 changes things, but when I try to run that cpp code, I still get the same error. I'm not sure if this is the right place to ask this type of question, but any help or advice would be greatly appreciated!
Community: FEniCS Project
Please login to add an answer/comment or follow this question.
The thread is closed. No new answer/comment may be added.

Similar posts:
Search »
  • Nothing matches yet.