pygmsh
pygmsh copied to clipboard
Problem with `import pygmsh’
Hello, I installed a Docker fenics constainer via
docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/dev
I then start and attach the container, and try to run a the following file generate_mesh.py that generates the mesh for a FE problem
import numpy
import meshio
import gmsh
import pygmsh
import argparse
[...]
However, I get the following error message
$ python3 generate_mesh.py
Traceback (most recent call last):
File "generate_mesh.py", line 4, in <module>
import pygmsh
File "/usr/local/lib/python3.6/dist-packages/pygmsh/__init__.py", line 1, in <module>
from . import geo, occ
File "/usr/local/lib/python3.6/dist-packages/pygmsh/geo/__init__.py", line 1, in <module>
from .geometry import Geometry
File "/usr/local/lib/python3.6/dist-packages/pygmsh/geo/geometry.py", line 4, in <module>
import gmsh
File "/usr/local/lib/python3.6/dist-packages/gmsh.py", line 86, in <module>
lib = CDLL(libpath)
File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libGLU.so.1: cannot open shared object file: No such file or directory
The solution reported here does not work:
$ sudo apt-get install libglu1-mesa
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libgl1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libllvm8
libsensors4 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1 libxfixes3 libxshmfence1 libxxf86vm1
Suggested packages:
lm-sensors
The following NEW packages will be installed:
libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libgl1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglu1-mesa libglvnd0 libglx-mesa0
libglx0 libllvm8 libsensors4 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1 libxfixes3 libxshmfence1 libxxf86vm1
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.8 MB/21.2 MB of archives.
After this operation, 221 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdrm-common all 2.4.97-1ubuntu1~18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdrm2 amd64 2.4.97-1ubuntu1~18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdrm-amdgpu1 amd64 2.4.97-1ubuntu1~18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdrm-intel1 amd64 2.4.97-1ubuntu1~18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdrm-nouveau2 amd64 2.4.97-1ubuntu1~18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdrm-radeon1 amd64 2.4.97-1ubuntu1~18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglapi-mesa amd64 19.0.8-0ubuntu0~18.04.3
404 Not Found [IP: 185.125.190.83 80]
Err:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libllvm8 amd64 1:8-3~ubuntu18.04.1
404 Not Found [IP: 185.125.190.83 80]
Err:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgl1-mesa-dri amd64 19.0.8-0ubuntu0~18.04.3
404 Not Found [IP: 185.125.190.83 80]
Err:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libx11-xcb1 amd64 2:1.6.4-3ubuntu0.2
404 Not Found [IP: 185.125.190.83 80]
Err:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglx-mesa0 amd64 19.0.8-0ubuntu0~18.04.3
404 Not Found [IP: 185.125.190.83 80]
Err:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgl1-mesa-glx amd64 19.0.8-0ubuntu0~18.04.3
404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-common_2.4.97-1ubuntu1~18.04.1_all.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm2_2.4.97-1ubuntu1~18.04.1_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-amdgpu1_2.4.97-1ubuntu1~18.04.1_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-intel1_2.4.97-1ubuntu1~18.04.1_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-nouveau2_2.4.97-1ubuntu1~18.04.1_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-radeon1_2.4.97-1ubuntu1~18.04.1_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libglapi-mesa_19.0.8-0ubuntu0~18.04.3_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/llvm-toolchain-8/libllvm8_8-3~ubuntu18.04.1_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-dri_19.0.8-0ubuntu0~18.04.3_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-xcb1_1.6.4-3ubuntu0.2_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libglx-mesa0_19.0.8-0ubuntu0~18.04.3_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-glx_19.0.8-0ubuntu0~18.04.3_amd64.deb 404 Not Found [IP: 185.125.190.83 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Do you know what is wrong here ? Thank you!