python3.9 module 'pivy' has no attribute '__version__'
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: python3.9 module 'pivy' has no attribute '__version__'
that's a question for the folk at pivy and/or for whoever is packaging it for your system.
Re: python3.9 module 'pivy' has no attribute '__version__'
That's the only change I had to dowmayer wrote: ↑Wed Jul 27, 2022 6:07 amOK, that's fine. We should delete FreeCAD's FindCoin3D.cmake file anyway since there is a system-wide file available. Do you have to change something else to make the Coin3D check working or is it sufficient to delete the file?waebbl wrote: ↑Tue Jul 26, 2022 9:18 pm Just remembered, that I'm removing the FreeCAD provided file during preparation of the source code (patching, etc). So it definitely uses the system provided file, see https://github.com/gentoo/gentoo/blob/m ... build#L144
Re: python3.9 module 'pivy' has no attribute '__version__'
Just installed pivy with support for python-3.9 as well as python-3.10 and it gives the correct output on print(pivy.__version__) on both occasions. Eventually your issue is related to packaging.FreddyFreddy wrote: ↑Wed Jul 27, 2022 8:07 amAFAICT cmake version was created 14 years ago. But this is a distraction from working out why some pythons have the version of pivy with __version__ and some don't.
-
- Posts: 176
- Joined: Wed Mar 09, 2022 3:15 am
- Location: Oz
Re: python3.9 module 'pivy' has no attribute '__version__'
@adrianinsaval and @waebbl I'm sure you are both right that this is a packaging issue. BTW I am on MacOS, and there have been a string of problems with the brew stuff lately, don't know if this is related. I just have an error showing and don't myself know enough about the packaging to identify the reason for the error. Maybe it is unimportant, but something ain't right.
Re: python3.9 module 'pivy' has no attribute '__version__'
From my POV you have several options here:FreddyFreddy wrote: ↑Wed Jul 27, 2022 11:13 pm @adrianinsaval and @waebbl I'm sure you are both right that this is a packaging issue. BTW I am on MacOS, and there have been a string of problems with the brew stuff lately, don't know if this is related. I just have an error showing and don't myself know enough about the packaging to identify the reason for the error. Maybe it is unimportant, but something ain't right.
- If that's possible on MacOS try out different providers and see if their packages work, i.e. pip or pypy
- Report to the brew devs
- Report to the pivy devs
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: python3.9 module 'pivy' has no attribute '__version__'
yeah the point I tried to make is that you should ask the right people about that.
Re: python3.9 module 'pivy' has no attribute '__version__'
Thanks, the patch works as expected.