mnesarco / MarzWorkbench

FreeCAD Workbench for guitar design
GNU General Public License v3.0
82 stars 19 forks source link

Marz Workbench not working on my Mac Os High Sierra #20

Closed Mojoberlin closed 1 year ago

Mojoberlin commented 2 years ago

Working on mac os high sierra 10.13.6 with latest FreeCAD Version 0.20-1 and latest Marz Workbench v0.0.26-alpha. Using Python Version 3.10.5 packaged by conda-forge. I can launch the Marz Guitar Designer Workbench. I can also open a new instrument. I can see the new instrument in the model view. From here I have several options: create a fretboard or a neck or a body. In my Python Console I get the following message if I want to create a Fretboard, for example: "Gui.runCommand('MarzCmdCreateFretboard',0)"

As an example, if I now create a new fretboard I get the following error message:

File "/Users/michaelfreudenberg/Library/Application Support/FreeCAD/Mod/Marz/./freecad/marz/command/create_fretboard.py", line 47, in Activated App.ActiveDocument.getObject(MarzInstrument_Name).Proxy.createFretboard() File "/Users/michaelfreudenberg/Library/Application Support/FreeCAD/Mod/Marz/./freecad/marz/feature/instrument.py", line 164, in createFretboard self.add(Fretboard()) File "/Users/michaelfreudenberg/Library/Application Support/FreeCAD/Mod/Marz/./freecad/marz/feature/instrument.py", line 199, in add self.doInTransaction(transaction, f"Marz Add {name}") File "/Users/michaelfreudenberg/Library/Application Support/FreeCAD/Mod/Marz/./freecad/marz/feature/instrument.py", line 96, in doInTransaction bar = StartProgress(f"Processing {name}...") File "/Users/michaelfreudenberg/Library/Application Support/FreeCAD/Mod/Marz/./freecad/marz/extension/ui.py", line 52, in StartProgress bar = App.Base.ProgressIndicator() TypeError: cannot create 'N4Base19ProgressIndicatorPyE' instance

mnesarco commented 2 years ago

Hi @Mojoberlin I am sorry to hear that it does not work for you. But have you read the mac note in readme? Basically it is not supported on mac because I have never tested it on mac.

mnesarco commented 2 years ago

Looking at your error message it seems like a breaking api change in the progress indicator. I will review tomorrow. Maybe it is affecting all platforms

Mojoberlin commented 2 years ago

Hi @mnesarco thx for your time and your quick reply, maybe you will find a solution to the problem. If you need any additional information from me then let me know. 👋

mnesarco commented 2 years ago

There is no problem running it on Linux. So the problem must be specific to Mac or your environment. image

mnesarco commented 1 year ago

I have added a temp workaround for MacOS.

Referenced FreeCAD bug: forum: https://forum.freecadweb.org/viewtopic.php?f=10&t=53713 issue: https://github.com/FreeCAD/FreeCAD_Conda/issues/26

mnesarco commented 1 year ago

As this is apparently solved by now, I am closing this.

kellander commented 1 year ago

Hi! I have tried all above but can not get a body to load. I can launch the Marz Guitar Designer Workbench. I can also open a new instrument. I can see the new instrument in the model view. osx 13.4.1 freecad 0.20.2-29603 marz 00.26 alpha

14:08:02 [MARZ] Traceback (most recent call last): File "/Applications/FreeCAD.app/Contents/Resources/Mod/Marz/freecad/marz/command/create_body.py", line 48, in Activated App.ActiveDocument.getObject(MarzInstrument_Name).Proxy.createBody() File "/Applications/FreeCAD.app/Contents/Resources/Mod/Marz/freecad/marz/feature/instrument.py", line 176, in createBody self.add(Body()) File "/Applications/FreeCAD.app/Contents/Resources/Mod/Marz/freecad/marz/feature/instrument.py", line 199, in add self.doInTransaction(transaction, f"Marz Add {name}") File "/Applications/FreeCAD.app/Contents/Resources/Mod/Marz/freecad/marz/feature/instrument.py", line 96, in doInTransaction bar = StartProgress(f"Processing {name}...") File "/Applications/FreeCAD.app/Contents/Resources/Mod/Marz/freecad/marz/extension/ui.py", line 52, in StartProgress bar = App.Base.ProgressIndicator() TypeError: cannot create 'N4Base19ProgressIndicatorPyE' instances

Regards! Jonas

mnesarco commented 1 year ago

Your version is outdated, please try update to the latest 0.0.27-alpha

kellander commented 1 year ago

Hi! Thanks for pointing me in the right direction.

here i find 0.0.25 alpha as "latest". https://github.com/mnesarco/MarzWorkbench/tree/master

Is there somewhere else I download 0.0.27?

/Jonas

kellander commented 1 year ago

Found it - add-on manager. /Jonas

mnesarco commented 1 year ago

Oh, yes, AddOn Manager should be used always.