I have a Flathub install of FreeCAD 0.19 on my Linux Mint 20.2, and I cannot export .ifc files.
I receive the following traceback from FreeCAD python terminal:
Code: Select all
>>> import ifcopenshell
Traceback (most recent call last):
File "/app/lib/python3.8/site-packages/ifcopenshell/__init__.py", line 47, in <module>
from . import ifcopenshell_wrapper
File "/app/lib/python3.8/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/app/lib/python3.8/site-packages/ifcopenshell/ifcopenshell_wrapper.py", line 759, in <module>
class FileDescription(HeaderEntity):
File "/app/lib/python3.8/site-packages/ifcopenshell/ifcopenshell_wrapper.py", line 783, in FileDescription
__swig_getmethods__["description"] = description
NameError: name '__swig_getmethods__' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/app/lib/python3.8/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/app/lib/python3.8/site-packages/ifcopenshell/__init__.py", line 55, in <module>
raise ImportError("IfcOpenShell not built for '%s'" % python_distribution)
ImportError: IfcOpenShell not built for 'linux/64bit/python3.8'
I tried sys.path.append("/home/emiliano/.anaconda3/lib/python3.8/site-packages") in FreeCAD terminal, but the traceback persists and the path disappears after I restart FreeCAD.
Can anyone give me a hint of what I can do?