Bug#1134137: ImportError: IfcOpenShell not built for 'linux/64bit/python3.13'
Luke
debian at rtps.co
Thu Apr 16 21:38:28 BST 2026
Package: python3-ifcopenshell
Version: 0.8.1+dfsg1-2
Severity: grave
Justification: renders package unusable
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
Attempting to import ifcopenshell fails with a python `ImportError`:
```shell
$ python3 -c "import ifcopenshell"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ifcopenshell/__init__.py", line 84, in <module>
from . import ifcopenshell_wrapper
File "/usr/lib/python3/dist-packages/ifcopenshell/ifcopenshell_wrapper.py", line 10, in <module>
from . import _ifcopenshell_wrapper
ImportError: libsvgfill.so: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
import ifcopenshell
File "/usr/lib/python3/dist-packages/ifcopenshell/__init__.py", line 86, in <module>
raise ImportError("IfcOpenShell not built for '%s'" % python_distribution)
ImportError: IfcOpenShell not built for 'linux/64bit/python3.13'
It looks like there are two issues here. The first, is a failure to load
libsvgfill.so. Indeed the svgfill application shipped as part of the
`ifcopenshell` package fails with the same error:
$ svgfill
svgfill: error while loading shared libraries: libsvgfill.so: cannot open shared object file: No such file or directory
$ ldd `which svgfill`
linux-vdso.so.1 (0x00007f2e1817b000)
libsvgfill.so => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2e17e00000)
libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2e18119000)
libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e17c08000)
libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e17b12000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2e1817d000)
$ find / -name libsvgfill.so 2>/dev/null || echo not found
not found
It looks like the `.install` files in the debian/ directory doesn't glob the
necessary shared libraries. I'll try and provide a patch, though I don't really
know what I'm doing here, so I'll probably need your help.
The second part is the error message for the `ImportError` is a red herring, as
the missing shared object which causes the ifcopenshell_wrapper sub-import to
fail is assumed to be an architectural build failure by the python package:
$ grep -B 3 ImportError /usr/lib/python3/dist-packages/ifcopenshell/__init__.py
try:
from . import ifcopenshell_wrapper
except Exception:
raise ImportError("IfcOpenShell not built for '%s'" % python_distribution)
However, I think that's really an upstream (stylistic) problem, and is of little
import (L(OL())) if the library import correctly.
-- System Information:
Debian Release: forky/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.19.11+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-ifcopenshell depends on:
ii libc6 2.42-14
ii libgcc-s1 16-20260322-1
ii libgmp10 2:6.3.0+dfsg-5+b1
ii libifcopenshell0.8.1 0.8.1+dfsg1-2
ii libmpfr6 4.2.2-3
ii libocct-foundation-7.9 7.9.2+dfsg-4
ii libocct-modeling-algorithms-7.9 7.9.2+dfsg-4
ii libocct-modeling-data-7.9 7.9.2+dfsg-4
ii libpython3.13 3.13.12-1
ii libstdc++6 16-20260322-1
ii python3 3.13.9-3
ii python3-shapely 2.1.2-1+b1
python3-ifcopenshell recommends no packages.
python3-ifcopenshell suggests no packages.
-- no debconf information
More information about the debian-science-maintainers
mailing list