FreeCAD Flatpak from flathub.org has incorrect ifcopenshell version.
This bug appears in FreeCAD 0.21 found on both flathub-beta and flathub.
flathub-beta version: FreeCAD 0.21.0, Libs: 0.21.0R33639 (Git)
OS: KDE Flatpak runtime (GNOME/gnome-xorg)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33639 (Git)
Build type: Release
Branch: (HEAD detached at 1580fe7)
Hash: 1580fe7c9696654803a93da8cf372f75e75149fa
Python 3.10.11, Qt 5.15.10, Coin 4.0.0, Vtk 8.2.0, OCC 7.7.1
Locale: English/United States (en_US)
flathub version: FreeCAD 0.21.0, Libs: 0.21.0R33675 (Git)
OS: KDE Flatpak runtime (GNOME/gnome-xorg)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33675 (Git)
Build type: Release
Branch: (HEAD detached at 41b058e)
Hash: 41b058e2087de60dc8fef3d3e68c7d0129e13abf
Python 3.10.11, Qt 5.15.10, Coin 4.0.0, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
The ifcopenshell version embedded in flatpak is for python2 whereas the python version embedded in flatpak is python 3.10. Thus ifcopenshell doesn’t function.
To my understanding all python code in FreeCAD should be python3 since python2 is not supported any more.
import ifcopenshell
Traceback (most recent call last):
File “/app/lib/python3.10/site-packages/ifcopenshell/init.py”, line 54, in
from . import ifcopenshell_wrapper
File “/app/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py”, line 142, in _import
return original_import(name, *args, **kwargs)
File “/app/lib/python3.10/site-packages/ifcopenshell/ifcopenshell_wrapper.py”, line 13, in
from . import _ifcopenshell_wrapper
File “/app/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py”, line 142, in _import
return original_import(name, *args, **kwargs)
ImportError: /app/lib/python3.10/site-packages/ifcopenshell/_ifcopenshell_wrapper.so: undefined symbol: _ZTV13HdfSerializerDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/app/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py”, line 142, in _import
return original_import(name, *args, **kwargs)
File “/app/lib/python3.10/site-packages/ifcopenshell/init.py”, line 62, in
raise ImportError(“IfcOpenShell not built for ‘%s’” % python_distribution)
ImportError: IfcOpenShell not built for ‘linux/64bit/python3.10’