Path workbench throws a "No module named pivy" error

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
ruchg
Posts: 26
Joined: Wed Nov 02, 2016 11:26 am

Path workbench throws a "No module named pivy" error

Post by ruchg »

Start FreeCAD v0.18
Without opening a file, change from Start workbench to Path workbench
Error window pops up
Window Title: Workbench Failure
Window Text: No module named pivy

locate pivy shows
/usr/share/doc/python3-pivy/ folder and sub-folders
as well as
/usr/lib64/python3.7/site-packages/pivy/

FreeCAD does not add any tools to the 'ribbon'
I suspect this is because pivy cannot be found

dnf list installed | grep pivy returns:
python3-pivy.x86_64 0.6.5-0.1.fc30 @fedora

Changing path environment variable to include /usr/lib64/python3.7/site-packages/pivy/ did not help - - Path workbench still throws pivy error,

How do I get FreeCAD to find pivy?

OS: Linux (Fedora 30)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Path workbench throws a "No module named pivy" error

Post by looo »

Freecad is build with python2.7 but pivy is build with python3.7. The python version (major.minor) of compiled binaries must always match.
ruchg
Posts: 26
Joined: Wed Nov 02, 2016 11:26 am

Re: Path workbench throws a "No module named pivy" error

Post by ruchg »

I had to go to https://koji.fedoraproject.org
and search for pivy. Of the 31 matches I had to search for the python2 version.

I downloaded the rpm and installed with dnf and it seems to work.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Path workbench throws a "No module named pivy" error

Post by jmaustpc »

ruchg wrote: Sat Jun 01, 2019 1:10 pm OS: Linux (Fedora 30)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
If you installed that from a package, you should talk to the package maintainer, the libs versions are pathetically obsolete. Look at the difference between yours and Kubuntu 18.04 FreeCAD daily PPA. With OCC less than 7.3 for example, you are missing some functionality in your FreeCAD.

OS: Ubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Path workbench throws a "No module named pivy" error

Post by PrzemoF »

@ruchg: did you get the FreeCAD package from the official fedora repo? I'm having problems with pivy as well, but I do local or COPR compilation [1].

[1] https://copr.fedorainfracloud.org/
Post Reply