Bug#987170: python3-dolfinx: python module missing wrapper functions

Matsievskiy S.V. seregaxvm.main at gmail.com
Sun Apr 18 22:14:56 BST 2021


Package: python3-dolfinx
Version: 2019.2.0~git20210130.c14cb0a-4
Severity: important
X-Debbugs-Cc: seregaxvm.main at gmail.com

Dear Maintainer,

Python3 module misses some C++ wrapped functions. One of those functions is
`dolfinx.cpp.la.scatter_forward`

In order to reproduce the problem run the following Python3 code:
```python
import dolfinx
from mpi4py import MPI
mesh = dolfinx.UnitSquareMesh(MPI.COMM_WORLD, 8, 8,
dolfinx.cpp.mesh.CellType.quadrilateral)
V = dolfinx.FunctionSpace(mesh, ("CG", 2))
uex = dolfinx.Function(V)
uex.interpolate(lambda x: 1 + x[0]**2 + 2 * x[1]**2)
dolfinx.cpp.la.scatter_forward(uex.x)
```

This code throws error `AttributeError: module 'dolfinx.cpp.la' has no
attribute 'scatter_forward'` on Debian but runs just fine on the dockerized
jupyter notebook provided by https://github.com/jorgensd/dolfinx-tutorial


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'stable-updates'), (500, 'stable'), (50,
'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-dolfinx depends on:
ii  python3                             3.9.2-2
ii  python3-dolfinx-real                2019.2.0~git20210130.c14cb0a-4
ii  python3-numpy [python3-numpy-abi9]  1:1.19.5-1

python3-dolfinx recommends no packages.

Versions of packages python3-dolfinx suggests:
ii  dolfinx-doc  2019.2.0~git20210130.c14cb0a-4



More information about the debian-science-maintainers mailing list