[solved] During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

[solved] During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by reox »

I got now my build up and running again, unfortunately not using debian testing but only unstable.
However, I get this error message for several workbenches when starting freecad:

Code: Select all

During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred in /usr/lib/freecad-daily/Mod/AddonManager/InitGui.py
Please look into the log file for further information
During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred in /usr/lib/freecad-daily/Mod/Tux/InitGui.py
Please look into the log file for further information
During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred in /home/reox/.FreeCAD/Mod/FreeCAD_GitProject/InitGui.py
Please look into the log file for further information
During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred in /home/reox/.FreeCAD/Mod/A2plus/InitGui.py
Please look into the log file for further information
During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred in /home/reox/.FreeCAD/Mod/FCGear/InitGui.py
Please look into the log file for further information
During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred in /home/reox/.FreeCAD/Mod/kicadStepUpMod/InitGui.py
Please look into the log file for further information

Code: Select all

OS: Debian GNU/Linux bullseye/sid (i3/i3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20052 (Git)
Build type: Release
Branch: master
Hash: 6291921e9abe737e4440ff5814ca58547defadef
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.3.0
Locale: German/Austria (de_AT)
My build summary:

Code: Select all

00:19:53 O: -- Build type:          RelWithDebInfo
00:19:53 O: -- Compiler:            /usr/lib/ccache/c++ (9.3.0)
00:19:53 O: -- Flags:               -Wall -Wextra -Wno-write-strings -Wall -DHAVE_SWIG=1 -fpermissive -g -O2 -fdebug-prefix-map=/build/freecad-daily-0.19+git202003150013~daily=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
00:19:53 O: -- Standard:            Requires C++11
00:19:53 O: -- Python:              [/usr/bin/python3.8] [.cpython-38-x86_64-linux-gnu]
00:19:53 O: -- PCL:                 1.10.0
00:19:53 O: -- pybind11:            2.4.3
00:19:53 O: -- Boost:               106700
00:19:53 O: -- XercesC:             [/usr/lib/x86_64-linux-gnu/libxerces-c.so] [/usr/include]
00:19:53 O: -- ZLIB:                1.2.11
00:19:53 O: -- PyCXX:               [/build/freecad-daily-0.19+git202003150013~daily/src]
00:19:53 O: -- OCC:                 7.3.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat]
00:19:53 O: -- SMESH:               build internal
00:19:53 O: --  MEDFile:            [/usr/lib/x86_64-linux-gnu/libmedC.so] [/usr/include]
00:19:53 O: --  HDF5:               1.10.4
00:19:53 O: --  VTK:                7.1.1
00:19:53 O: -- NETGEN:              6.2-dev [-DNO_PARALLEL_THREADS;-DOCCGEOMETRY;-DNETGEN_VERSION=393728] [] [/usr/include/netgen/include;/usr/include/netgen] [nglib] [/usr/include/netgen/include;/usr/include/netgen]
00:19:53 O: -- SWIG:                4.0.1
00:19:53 O: -- Eigen3               3.3.7
00:19:53 O: -- Qt5Core:             5.12.5
00:19:53 O: -- Qt5Network:          5.12.5
00:19:53 O: -- Qt5Xml:              5.12.5
00:19:53 O: -- Qt5XmlPatterns:      5.12.5
00:19:53 O: -- Qt5Widgets:          5.12.5
00:19:53 O: -- Qt5PrintSupport:     5.12.5
00:19:53 O: -- Qt5OpenGL:           5.12.5
00:19:53 O: -- Qt5Svg:              5.12.5
00:19:53 O: -- Qt5UiTools:          5.12.5
00:19:53 O: -- Qt5Concurrent:       5.12.5
00:19:53 O: -- Qt5WebKitWidgets:    5.212.0
00:19:53 O: -- Shiboken2:           5.13.2 [/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.13.2] [/usr/include/shiboken2;/usr/include/python3.8]
00:19:53 O: -- PySide2:             5.13.2 [/usr/lib/include/PySide2]
00:19:53 O: -- PySide2Tools:        [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc]
00:19:53 O: -- Freetype:            2.10.1
00:19:53 O: -- OpenGLU:             /usr/lib/x86_64-linux-gnu/libGLU.so [/usr/lib/x86_64-linux-gnu/libGLU.so][/usr/include]
00:19:53 O: -- Coin3D:              [/usr/lib/x86_64-linux-gnu/libCoin.so] [/usr/include]
00:19:53 O: -- SPNAV:               [/usr/lib/libspnav.so] [/usr/include]
00:19:53 O: -- Matplotlib:          3.1.2
00:19:53 O: -- Rift:                not enabled (BUILD_VR)
00:19:53 O: -- Doxygen:             not found
Is this related to the pyside version and or python3.8?
Attachments
FreeCAD.log
(18.78 KiB) Downloaded 134 times
Last edited by reox on Mon May 18, 2020 5:19 pm, edited 1 time in total.
mdhill
Posts: 85
Joined: Mon Apr 24, 2017 7:37 pm

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by mdhill »

I have this error in FreeCAD built from master on Fedora Rawhide. It looks like this:

https://bugreports.qt.io/browse/PYSIDE-1140

and is supposed to be fixed with Pyside2 5.14 (not in Fedora yet).

I am able to build FreeCAD master as a Flatpak without this issue, but not with the latest Pyside2. As I mentioned in another post, it builds with the Qt/KDE 5.14 runtime and Pyside2 5.12.1.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by reox »

yes, I remembering that in pyside 5.14 which is in experimental right now, I did not had the error.
However, according to some other thread there are other issues in that version.
Okay then lets wait until all the updates trickle through to sid.
User avatar
kkremitzki
Veteran
Posts: 2517
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by kkremitzki »

Unfortunately things are in a bit of a broken state right now until the Debian Qt 5.14 transition is complete.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by reox »

too sad, so pyside2 from sid does not work right now, for example PD can not be opened:

Code: Select all

'Shiboken.ObjectType' object is not iterable
Traceback (most recent call last):
  File "<string>", line 42, in Initialize
  File "/usr/lib/freecad-daily/Mod/PartDesign/WizardShaft/WizardShaft.py", line 27, in <module>
    from .Shaft import Shaft
  File "/usr/lib/freecad-daily/Mod/PartDesign/WizardShaft/Shaft.py", line 25, in <module>
    from .SegmentFunction import SegmentFunction,  IntervalFunction,  StressFunction,  TranslationFunction
  File "/usr/lib/freecad-daily/Mod/PartDesign/WizardShaft/SegmentFunction.py", line 25, in <module>
    import numpy as np
  File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 69, in <module>
    from . import numerictypes as nt
  File "/usr/lib/python3/dist-packages/numpy/core/numerictypes.py", line 86, in <module>
    import numbers
  File "/usr/lib/python3.8/numbers.py", line 12, in <module>
    class Number(metaclass=ABCMeta):
  File "/usr/bin/../lib/python3.8/abc.py", line 85, in __new__
    cls = super().__new__(mcls, name, bases, namespace, **kwargs)
Hopefully the transition is finished soon :)
johanh
Posts: 17
Joined: Wed Apr 15, 2020 11:38 am
Location: Finland

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by johanh »

Recently upgraded to Fedora 32 and noticed this was broken as well.

https://bugzilla.redhat.com/show_bug.cgi?id=1750107

Well, I guess I have to use an appimage, then.
mdhill
Posts: 85
Joined: Mon Apr 24, 2017 7:37 pm

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by mdhill »

@johanh, my Flatpak experience (Qt 5.14 with Python 3.7) seems to have stabilized. I just replace the line:

commit: 783e1346c7a078f5265c3f0c6a927d09a8c1fe70

with:

branch: master

https://github.com/flathub/org.freecadw ... eeCAD.yaml
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by reox »

Wohoo! No more problems with pyside2 5.13.2-3
thank you @kkremitzki!
johanh
Posts: 17
Joined: Wed Apr 15, 2020 11:38 am
Location: Finland

Re: [solved] During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by johanh »

I've had pyside2-5.13.2-3 installed since April 29th and nothing has changed there that I know. I still have the same error. What else have changed?

Edit. OK, that's a debian version, that explains a lot (I'm on Fedora).
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: [solved] During initialization the error "'Shiboken.ObjectType' object is not iterable" occurred

Post by reox »

Yes, that is the version which was released yesterday: https://tracker.debian.org/news/1145695 ... -unstable/

Maybe you can check which patches got added and which are missing in Fedora. There is also the other thread which links a few patches: https://forum.freecadweb.org/viewtopic.php?f=4&t=46373
Post Reply