Hello!
Thank you so much for answering over the weekend and leading me to provide more precise data!
1.All my downloads were via conda-forge (FeniCS, Dolfin and their dependencies)
2. Spyder 4.15, Mac 10.15.7, Python version 3.8, FEniCS version 2019.1.0 py38h32f6830_10 is the last on in a long list that I see after typing conda search fenics conda-forge
3. The problems occur both in executing In terminal (fenicsproject environment) or with Spyder in the fenicsproject environment.
4.I am new to Python and wishing to convert from Mathematica and Java to Python. My need in a working PDE library is due to my own mathematical research in conformal mapping.
5. The remarks below relate to the examples, which I copy and paste to Spyder, from here https://fenicsproject.org/tutorial.
ft01_poisson.py - works with no issues.
ft02_poisson_membrane.py fails to compile. As far as I can tell, it fails right after the cal to
from mshr import *.
runfile(’/opt/anaconda3/envs/fenicsproject/ft02_poisson_membrane.py’, wdir=’/opt/anaconda3/envs/fenicsproject’)
Traceback (most recent call last):
File “/opt/anaconda3/envs/fenicsproject/ft02_poisson_membrane.py”, line 3, in
from mshr import *
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/mshr/init.py”, line 24, in
from .cpp import Circle
ImportError: generic_type: type “CSGGeometry” referenced unknown base type “dolfin::Variable”
ft_03_heat.py. Fails to compile
runfile(’/opt/anaconda3/envs/fenicsproject/ft03_heat.py’, wdir=’/opt/anaconda3/envs/fenicsproject’)
------------------- Start compiler output ------------------------
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
------------------- End compiler output ------------------------
Compilation failed! Sources, command, and errors have been written to: /opt/anaconda3/envs/fenicsproject/jitfailure-dolfin_expression_aff4bdda4932159eae1eaa8144a93f7b
Traceback (most recent call last):
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 165, in compile_class
module, signature = dijitso_jit(cpp_data, module_name, params,
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 47, in mpi_jit
return local_jit(*args, **kwargs)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 103, in dijitso_jit
return dijitso.jit(*args, **kwargs)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dijitso/jit.py”, line 216, in jit
raise DijitsoError(“Dijitso JIT compilation failed, see ‘%s’ for details”
DijitsoError: Dijitso JIT compilation failed, see ‘/opt/anaconda3/envs/fenicsproject/jitfailure-dolfin_expression_aff4bdda4932159eae1eaa8144a93f7b’ for details
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/opt/anaconda3/envs/fenicsproject/ft03_heat.py”, line 17, in
u_D = Expression(‘1 + x[0]x[0] + alphax[1]x[1] + betat’,
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/function/expression.py”, line 400, in init
self._cpp_object = jit.compile_expression(cpp_code, params)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/function/jit.py”, line 158, in compile_expression
expression = compile_class(cpp_data, mpi_comm=mpi_comm)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 170, in compile_class
raise RuntimeError(“Unable to compile C++ code with dijitso”)
RuntimeError: Unable to compile C++ code with dijitso
ft_04_heat_gaussian.py. Fails to compile.
runfile(’/opt/anaconda3/envs/fenicsproject/ft04_heat_gaussian.py’, wdir=’/opt/anaconda3/envs/fenicsproject’)
------------------- Start compiler output ------------------------
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
------------------- End compiler output ------------------------
Compilation failed! Sources, command, and errors have been written to: /opt/anaconda3/envs/fenicsproject/jitfailure-dolfin_expression_6cc907875187e5605a7b7ac57ea3828c
Traceback (most recent call last):
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 165, in compile_class
module, signature = dijitso_jit(cpp_data, module_name, params,
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 47, in mpi_jit
return local_jit(*args, **kwargs)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 103, in dijitso_jit
return dijitso.jit(*args, **kwargs)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dijitso/jit.py”, line 216, in jit
raise DijitsoError(“Dijitso JIT compilation failed, see ‘%s’ for details”
DijitsoError: Dijitso JIT compilation failed, see ‘/opt/anaconda3/envs/fenicsproject/jitfailure-dolfin_expression_6cc907875187e5605a7b7ac57ea3828c’ for details
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/opt/anaconda3/envs/fenicsproject/ft04_heat_gaussian.py”, line 20, in
u_0 = Expression(‘exp(-apow(x[0], 2) - apow(x[1], 2))’,
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/function/expression.py”, line 400, in init
self._cpp_object = jit.compile_expression(cpp_code, params)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/function/jit.py”, line 158, in compile_expression
expression = compile_class(cpp_data, mpi_comm=mpi_comm)
File “/opt/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/jit/jit.py”, line 170, in compile_class
raise RuntimeError(“Unable to compile C++ code with dijitso”)
RuntimeError: Unable to compile C++ code with dijitso
It would be great to have your advice about how to acquire working and deep knowledge of Fenics. I am reading “Numerical Python” by Johansson and liking it. Still, as he said his chapter is only an overview of what Fenics can do. I also just dowloaded the free version of vol1 of FEniCS tutorial, yet this one is a 2017 version.
I look forward to hearing back from you!
Saar
PS-I did not continue after ft_04 as obviously something is wrong.