Difficulties in using docker image dolfinx_mpc:v0.8.0.post0

Hello all,

I am trying to use the new version 0.8.0 for dolfinx_mpc via docker. I have problems for using the dolfinx_mpc part:

xxx@test:~$ docker pull ghcr.io/jorgensd/dolfinx_mpc:v0.8.0.post0
v0.8.0.post0: Pulling from jorgensd/dolfinx_mpc
3c645031de29: Already exists 
4f4fb700ef54: Already exists 
47015cdd6499: Already exists 
c4b983ba6c68: Already exists 
4b0f2b32fe9d: Already exists 
0735a16b4797: Already exists 
4010ff3b128a: Already exists 
1b3a12d2cedb: Already exists 
a5e9d2b65ef7: Already exists 
049e604d7349: Already exists 
d7e4c1c30f79: Already exists 
0206e4f74a15: Already exists 
bb6de4299671: Already exists 
35500ecc44de: Already exists 
0658e41621f3: Already exists 
eb6772ca3ce2: Already exists 
3554461bc0fd: Already exists 
243dac84957a: Already exists 
1be379a9fafc: Already exists 
6a8452fbd728: Already exists 
Digest: sha256:28df86f3cfcbe657ef1f6eb0ad17bf2de71814c0321f9fd66c252e01c63eb045
Status: Downloaded newer image for ghcr.io/jorgensd/dolfinx_mpc:v0.8.0.post0
xxx@test:~$ docker run -ti ghcr.io/jorgensd/dolfinx_mpc:v0.8.0.post0
root@22d776c99b93:~# python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dolfinx_mpc
>>> from dolfinx_mpc import MultiPointConstraint
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'MultiPointConstraint' from 'dolfinx_mpc' (unknown location)

This error message did not occur in previous versions.

What could be the reason for that?

cc @dokken : I can replicate this on my amd64 system.

1 Like

I’ve made a 0.8.0.post1 release to fix the dockerfile, it will be done building when Fix typo in version · jorgensd/dolfinx_mpc@b780366 · GitHub passes


New try at: Check docker image build on CI (#116) · jorgensd/dolfinx_mpc@36de714 · GitHub

It works. Thank you!

One more question about the installation via Spack on the HPC:

Is it already possible to install version 0.8.0 of dolfinx via Spack? And how can I specify the version to be installed in the commands?

No, it is currently not released on spack, see versions at: Spack Packages