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!
ruchg
Posts: 21
Joined: Wed Nov 02, 2016 11:26 am

Path workbench throws a "No module named pivy" error

Postby ruchg » Sat Jun 01, 2019 1:10 pm

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)
looo
Posts: 2908
Joined: Mon Nov 11, 2013 5:29 pm

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

Postby looo » Sat Jun 01, 2019 3:11 pm

Freecad is build with python2.7 but pivy is build with python3.7. The python version (major.minor) of compiled binaries must always match.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
ruchg
Posts: 21
Joined: Wed Nov 02, 2016 11:26 am

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

Postby ruchg » Mon Jun 03, 2019 1:48 pm

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
Posts: 9566
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

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

Postby jmaustpc » Tue Jun 04, 2019 2:07 pm

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
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

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

Postby PrzemoF » Tue Jun 04, 2019 2:35 pm

@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/