Shaft Design Wizard - ModuleNotFoundError

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
mstroehle
Posts: 7
Joined: Fri Jul 20, 2018 12:12 pm

Shaft Design Wizard - ModuleNotFoundError

Post by mstroehle »

Hello guys,

I tried several different methods to get the shaft design wizard running.

I read that matplotlib is necessary. (https://wiki.freecadweb.org/PartDesign_WizardShaft )

first i tried to install it straight out of the cmd. But i saw that Freecad uses his own python.exe therefore i tried this:
C:\Program Files\FreeCAD 0.18\bin> .\python.exe -m pip install -U matplotlib --user

on this system:

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)
getting this:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\FreeCAD 0.18\Mod\PartDesign\WizardShaft\WizardShaft.py", line 133, in slotSigmaby
    self.shaft.showDiagram("sigmaby")
  File "C:\Program Files\FreeCAD 0.18\Mod\PartDesign\WizardShaft\Shaft.py", line 277, in showDiagram
    self.diagrams[self.sigmaB[ax].name].create(text[0], self.sigmaB[ax], self.getLengthTo(len(self.segments)) / 1000.0, text[1], text[2], 1000.0, text[3], text[4], 1.0E-6, 20)
  File "C:\Program Files\FreeCAD 0.18\Mod\PartDesign\WizardShaft\ShaftDiagram.py", line 42, in create
    self.win = Plot.figure(title)
AttributeError: module 'Plot' has no attribute 'figure'

i also tried to get it running with the development snapshots:

Code: Select all

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22130 (Git)
Build type: Release
Branch: master
Hash: dc65b055e5143a7d7349520da466d4d722df57e8
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)
getting the same error as above.


With this version:

Code: Select all

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22130 (Git)
Build type: Release
Branch: master
Hash: dc65b055e5143a7d7349520da466d4d722df57e8
Python version: 3.8.5
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Austria (de_AT)


I am getting this:

Code: Select all

01:45:38  Traceback (most recent call last):
01:45:38    File "G:\FreeCAD_0.19.22130-Win-Conda_vc14.x-x86_64\Mod\PartDesign\WizardShaft\WizardShaft.py", line 113, in slotMy
01:45:38      self.shaft.showDiagram("My")
01:45:38    File "G:\FreeCAD_0.19.22130-Win-Conda_vc14.x-x86_64\Mod\PartDesign\WizardShaft\Shaft.py", line 238, in showDiagram
01:45:38      self.diagrams[self.M[ax].name].create(text[0], self.M[ax], self.getLengthTo(len(self.segments)) / 1000.0, text[1], text[2], 1000.0, text[3], text[4], 1.0, 20)
01:45:38    File "G:\FreeCAD_0.19.22130-Win-Conda_vc14.x-x86_64\Mod\PartDesign\WizardShaft\ShaftDiagram.py", line 30, in create
01:45:38      import Plot
01:45:38  ModuleNotFoundError: No module named 'Plot'
Do you have an idea what I am making wrong?

Thanks in advance
Markus
Post Reply