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)
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)
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'
Thanks in advance
Markus