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

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
hobbes1069
Posts: 291
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 »

You're right, it confused me because of the reference to coin, I took a look at the Coin4 package in Fedora and it doesn't need Python, but I had forgotten about python-pviy.

Thanks!
User avatar
hobbes1069
Posts: 291
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 »

Whoops, got my lines crossed. The error output is from my Fedora 35 desktop which is still on Python 3.10 so that part is OK, but what is the error about?
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

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

Post by adrianinsaval »

From here I gather that fedora 35 uses pivy 0.6.5: http://fedora.mirror.constant.com/fedor ... x86_64.rpm
If I'm not mistaken pivy 0.6.5 has many issues with python 3.10, can you upgrade to 0.6.7? or where the fixes backported in Fedora?
User avatar
hobbes1069
Posts: 291
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 »

Fedora 35 and 36 is on 0.6.6, but I can upgrade them to 0.6.7.
User avatar
hobbes1069
Posts: 291
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 updated python-pivy for Fedora 35 and 36 and am just waiting until the update hits testing again so I can try it out.
User avatar
hobbes1069
Posts: 291
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 can confirm up pivy updated to 0.6.7 the errors are gone.

Thanks!
User avatar
hobbes1069
Posts: 291
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 »

As far the the original error, it looks like the two commits for Python 3.11 compatibility did not make it into the 0.20.1 release?

Thanks,
Richard
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

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

Post by adrianinsaval »

@wmayer should these be backported?
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

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

Post by wmayer »

If it's needed there then it should also be backported.
Post Reply