Subject: Re: bug#54011: FreeCAD: Unable to import STEP files

From: Guillaume Le Vaillant <[email-masked]>
Date: Wed, 16 Feb 2022 13:45:43 +0000

Guillaume Le Vaillant <[email-masked]> skribis:

> Jacob Hrbek <[email-masked]> skribis:
>
>> [[PGP Signed Part:No public key for ADD37D14AB42FCA9 created at 2022-02-15T15:56:38+0100 using EDDSA]]
>> Importing zipped STEP file: 15:50:27 Traceback (most recent call last):
>>
>> [...]
>>
>> from PySide2.QtSvg import *
>>
>> File
>> "/gnu/store/aps2s0h5l3a9w30qrsygpc0prhrmp5ap-python-shiboken-2-5.15.2/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py",
>> line 142, in _import
>>
>> return original_import(name, *args, **kwargs)
>>
>> <class 'ModuleNotFoundError'>: No module named 'PySide2.QtSvg'
>>
>> [...]
>
> There is an issue with the python-pyside-2 package. It fails to activate
> support for the Qt components that are not in the qtbase package (like
> qtxmlpatterns, qtmultimedia, qtsvg, etc):
>
> ...

I pushed a fix for python-pyside-2, but importing the STEP file in
freecad still fails because of other errors.

When importing the zip file:

--8<---------------cut here---------------start------------->8---
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/gnu/store/pd0pxvnr3qdgcz37p80v6q8p0wk9xyfh-freecad-0.19.3-0.09a05a9/Mod/Arch/importSH3D.py", line 47, in open
    read(filename)
  File "/gnu/store/pd0pxvnr3qdgcz37p80v6q8p0wk9xyfh-freecad-0.19.3-0.09a05a9/Mod/Arch/importSH3D.py", line 79, in read
    homexml = z.read("Home.xml")
  File "/gnu/store/mhbnni58w5hvpr304jxc5kws1vrp2l1i-python-3.9.9/lib/python3.9/zipfile.py", line 1463, in read
    with self.open(name, "r", pwd) as fp:
  File "/gnu/store/mhbnni58w5hvpr304jxc5kws1vrp2l1i-python-3.9.9/lib/python3.9/zipfile.py", line 1502, in open
    zinfo = self.getinfo(name)
  File "/gnu/store/mhbnni58w5hvpr304jxc5kws1vrp2l1i-python-3.9.9/lib/python3.9/zipfile.py", line 1429, in getinfo
    raise KeyError(
<class 'KeyError'>: "There is no item named 'Home.xml' in the archive"
--8<---------------cut here---------------end--------------->8---

When decompressing the zip file and importing the STEP file:

--8<---------------cut here---------------start------------->8---
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/gnu/store/cwfgf3xb2vfqckxqv196jz8xpbigxkqj-python-shiboken-2-5.15.2/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
<class 'ImportError'>: /gnu/store/pd0pxvnr3qdgcz37p80v6q8p0wk9xyfh-freecad-0.19.3-0.09a05a9/lib/Import.so: undefined symbol: _ZN3tbb6detail2r122cancel_group_executionERNS0_2d118task_group_contextE
--8<---------------cut here---------------end--------------->8---

I guess now we have to find where
'_ZN3tbb6detail2r122cancel_group_executionERNS0_2d118task_group_contextE'
is coming from.