Dear all.
Already for some time, I use FEniCS in a docker environment + gmsh + pygmsh + meshio. Here are the specifications of my system:
- Lubuntu 18.04
- FEniCS docker version 2019.1.0
Inside the FEniCS container, I installed the packages as follows:
sudo apt update ; sudo apt dist-upgrade
sudo apt install gmsh python3-h5py python3-lxml python-h5py python-lxml python3-pip
sudo pip install --upgrade pip
sudo -H pip install pygmsh meshio
sudo -H pip3 install pygmsh meshio
Everything works very well, I can use pygmsh and OpenCASCADE without any problem (see, e.g., here: Link).
However, the point is that gmsh is installed from the Ubuntu 18.04 repositories. The version of gmsh is quite old, it is version 3.0.6, and I would like to profit now from the latest version 4.6.0.
One way is to compile gmsh inside the container, which simply is a mess! The second way is to use pip instead of using apt:
sudo -H pip gmsh
sudo -H pip3 gmsh
This is what I have done: a clean install of gmsh in a new FEniCS container. However, when I type gmsh, it says:
Traceback (most recent call last):
File "/usr/local/bin/gmsh", line 6, in <module>
import gmsh
ModuleNotFoundError: No module named 'gmsh'
After the pip install, gmsh is located in
/usr/local/lib/python3.6/dist-packages/
… but there is only the directory gmsh-4.6.0.dist-info
, which only contains some info.
Questions: Did I oversee some important step? Has one of you installed a relatively new gmsh version in the FEniCS docker environment? Thanks in advance for some help.