Hello everyone,
I have managed to get fenics to run in a container to which a module is mounted so it can execute python files so far. I followed these instructions: 2. Introduction — FEniCS Containers 1.0 documentation
For running a demo I need fenics_shells as well. I tried following the instructions:
https://fenics-shells.readthedocs.io/en/latest/
Do I need to run this within the container?
git clone https://bitbucket.org/unilucompmech/fenics-shells.git
and then how do I install it?
I also tried to install fenics_shells via
pip3 install git+https://bitbucket.org/unilucompmech/fenics-shells.git
which allows me to import fenics_shells in python, but gives me this error:
root@167edf54c61e:/home/fenics# python3
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fenics_shells
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/fenics_shells/__init__.py", line 46, in <module>
from .fem import *
File "/usr/local/lib/python3.6/dist-packages/fenics_shells/fem/__init__.py", line 28, in <module>
cpp = dolfin.compile_cpp_code(projected_assembler_code)
File "/usr/local/lib/python3.6/dist-packages/dolfin/jit/pybind11jit.py", line 96, in compile_cpp_code
generate=jit_generate)
File "/usr/local/lib/python3.6/dist-packages/dolfin/jit/jit.py", line 47, in mpi_jit
return local_jit(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/dolfin/jit/jit.py", line 103, in dijitso_jit
return dijitso.jit(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/dijitso/jit.py", line 153, in jit
lib = lookup_lib(signature, cache_params)
File "/usr/local/lib/python3.6/dist-packages/dijitso/cache.py", line 391, in lookup_lib
lib = load_library(lib_signature, cache_params)
File "/usr/local/lib/python3.6/dist-packages/dijitso/cache.py", line 363, in load_library
lib = __import__(signature)
ImportError: generic_type: type "ProjectedAssembler" referenced unknown base type "dolfin::AssemblerBase"
I appreciate the help!