error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
hobbes1069
Posts: 287
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by hobbes1069 »

Fedora Linux - Rawhide
FreeCAD 0.20
gcc 12.1.1
Python 3.11

Code: Select all

[ 40%] Building CXX object src/Base/CMakeFiles/FreeCADBase.dir/ConsoleObserver.cpp.o
cd /builddir/build/BUILD/FreeCAD-0.20/redhat-linux-build/src/Base && /usr/bin/g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DFreeCADBase_EXPORTS -DHAVE_CONFIG_H -DHAVE_SWIG=1 -DPYCXX_6_2_COMPATIBILITY -DPYCXX_PYTHON_2TO3 -DQT_CORE_LIB -DQT_NO_DEBUG -D_OCC64 -I/builddir/build/BUILD/FreeCAD-0.20/redhat-linux-build/src/Base/FreeCADBase_autogen/include -I/builddir/build/BUILD/FreeCAD-0.20/redhat-linux-build -I/builddir/build/BUILD/FreeCAD-0.20/redhat-linux-build/src -I/builddir/build/BUILD/FreeCAD-0.20/src -I/builddir/build/BUILD/FreeCAD-0.20/redhat-linux-build/src/Base -I/builddir/build/BUILD/FreeCAD-0.20/src/Base -I/usr/include/python3.11 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -Wall -Wextra -Wno-write-strings -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -fPIC -std=gnu++17 -MD -MT src/Base/CMakeFiles/FreeCADBase.dir/ConsoleObserver.cpp.o -MF CMakeFiles/FreeCADBase.dir/ConsoleObserver.cpp.o.d -o CMakeFiles/FreeCADBase.dir/ConsoleObserver.cpp.o -c /builddir/build/BUILD/FreeCAD-0.20/src/Base/ConsoleObserver.cpp
...
/builddir/build/BUILD/FreeCAD-0.20/src/Base/ConsoleObserver.cpp: In member function 'std::stringstream& Base::LogLevel::prefix(std::stringstream&, const char*, int)':
/builddir/build/BUILD/FreeCAD-0.20/src/Base/ConsoleObserver.cpp:269:41: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}
  269 |             src = PyUnicode_AsUTF8(frame->f_code->co_filename);
      |                                         ^~
Perhaps something has changed in Python 3.11?

Full build logs can be provided if helpful.

Thanks,
Richard
wmayer
Founder
Posts: 18785
Joined: Thu Feb 19, 2009 10:32 am

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by wmayer »

git commit 1ae55905ba
Make FreeCAD to compile with Py3.11. But it immediately crashes at start...

Why does Fedora use a beta version of Python? The latest stable is still 3.10
User avatar
hobbes1069
Posts: 287
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by hobbes1069 »

If no one is first, then the problems don't get fixed :)

But more seriously, testing in Fedora Rawhide (rolling development) problems are found before the full release instead of after. We find most of the GCC bugs too.
wmayer
Founder
Posts: 18785
Joined: Thu Feb 19, 2009 10:32 am

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by wmayer »

git commit 6820e0a9ec fixes the crash. The function Py_SET_TYPE() doesn't handle types that are inherited (in C++) from PyObject and thus produces a dangling pointer. So, the trick is to directly set the ob_type member.
User avatar
hobbes1069
Posts: 287
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by hobbes1069 »

Thanks! Test building now.
User avatar
Kunda1
Veteran
Posts: 12692
Joined: Thu Jan 05, 2017 9:03 pm

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by Kunda1 »

@hobbes1069, any news ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
hobbes1069
Posts: 287
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by hobbes1069 »

I need to try running it, but all builds for Fedora 35, 36, and Rawhide have built and been submitted to the testing repositories.
User avatar
hobbes1069
Posts: 287
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by hobbes1069 »

Loading one of the preinstalled examples works but there's a lot of output related to coin...

Code: Select all

07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_wire.py", line 89, in attach
    col.rgb.setValue(vobj.LineColor[0],vobj.LineColor[1],vobj.LineColor[2])
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_wire.py", line 89, in attach
    col.rgb.setValue(vobj.LineColor[0],vobj.LineColor[1],vobj.LineColor[2])
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1052, in attach
    fs.coordIndex.setValues(0,7,[0,1,2,-1,0,2,3])
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1104, in updateData
    self.txtcoords.rotation.setValue(obj.Placement.Rotation.Q)
<class 'AttributeError'>: '_ViewProviderSectionPlane' object has no attribute 'txtcoords'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1121, in onChanged
    self.mat2.transparency.setValue(vobj.Transparency/100.0)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1052, in attach
    fs.coordIndex.setValues(0,7,[0,1,2,-1,0,2,3])
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1104, in updateData
    self.txtcoords.rotation.setValue(obj.Placement.Rotation.Q)
<class 'AttributeError'>: '_ViewProviderSectionPlane' object has no attribute 'txtcoords'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1121, in onChanged
    self.mat2.transparency.setValue(vobj.Transparency/100.0)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1052, in attach
    fs.coordIndex.setValues(0,7,[0,1,2,-1,0,2,3])
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1104, in updateData
    self.txtcoords.rotation.setValue(obj.Placement.Rotation.Q)
<class 'AttributeError'>: '_ViewProviderSectionPlane' object has no attribute 'txtcoords'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchSectionPlane.py", line 1121, in onChanged
    self.mat2.transparency.setValue(vobj.Transparency/100.0)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 368, in attach
    self.text.string = "d"
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchWall.py", line 1604, in attach
    tex.image = image
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchWall.py", line 1696, in setDisplayMode
    self.fset.coordIndex.deleteValues(0)
<class 'AttributeError'>: '_ViewProviderWall' object has no attribute 'fset'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Arch/ArchWall.py", line 1696, in setDisplayMode
    self.fset.coordIndex.deleteValues(0)
<class 'AttributeError'>: '_ViewProviderWall' object has no attribute 'fset'
07:25:13  SketchObject::onChanged(): Unmanaged change of Constraint Property results in invalid constraint indices
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension001, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension001, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension002, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension002, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension003, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension003, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension004, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension004, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension005, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension005, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension006, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension006, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension007, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension007, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension008, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension008, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension009, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension009, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension010, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension010, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension011, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension011, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension012, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension012, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension013, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension013, added view property 'ScaleMultiplier'
07:25:13  Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Draft/draftviewproviders/view_dimension.py", line 702, in onChanged
    self.font.size = vobj.FontSize.Value * vobj.ScaleMultiplier
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
    field = self.getField(name)
  File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
<class 'SystemError'>: <built-in function SoFieldContainer_getField> returned a result with an exception set
07:25:13  v0.19, Dimension014, added view property 'ScaleMultiplier'
07:25:13  ----------------
07:25:13  Unset style
07:25:13  v0.19, Dimension014, added view property 'ScaleMultiplier'
adrianinsaval
Veteran
Posts: 3080
Joined: Thu Apr 05, 2018 5:15 pm

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by adrianinsaval »

what version of pivy is it using?
wmayer
Founder
Posts: 18785
Joined: Thu Feb 19, 2009 10:32 am

Re: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}

Post by wmayer »

File "/usr/lib64/python3.10/site-packages/pivy/coin.py", line 3998, in __setattr__
pivy seems to be built with the wrong Python version. It uses 3.10 instead of 3.11.
Post Reply