Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to creat printer on OSX #7

Open
Nemesis81 opened this issue Mar 16, 2016 · 2 comments
Open

Unable to creat printer on OSX #7

Nemesis81 opened this issue Mar 16, 2016 · 2 comments

Comments

@Nemesis81
Copy link

got this while trying to create a new printer:

`Running the Python command 'createMachineDef' failed:
Traceback (most recent call last):
File "/Applications/FreeCAD 2.app/Contents/Mod/cura_engine/Commands.py", line 51, in Activated
panel = MachineDef.PrintBedTaskPanel()
File "/Applications/FreeCAD 2.app/Contents/Mod/cura_engine/MachineDef.py", line 246, in init
self.form = uic.loadUi(self.homeDir + "/.FreeCAD/Mod/FreeCAD-CuraEngine-Plugin/MachineDef.ui")
File "", line 4, in

Cannot open file`

maybe just a path problem

@fcacarminati
Copy link

fcacarminati commented May 18, 2017

Just do

mkdir ~/.FreeCAD
ln -s /Applications/FreeCAD.app/Contents/Mod/ ~/.FreeCAD/

However even with this mod the program will fail later on. First of all the path has to be set to the Cura engine

/Applications/Cura.app/Contents/MacOS/CuraEngine

but even so something is wrong in the invocation sequence for mac. This package is not yet supported on mac.

@fcacarminati
Copy link

fcacarminati commented May 18, 2017

OK, for whoever is concerned, these are my mods for the mac.

diff FreeCAD-CuraEngine-Plugin/SlicerPanel.py /Applications/FreeCAD.app/Contents/Mod/FreeCAD-CuraEngine-Plugin/SlicerPanel.py
172c172
< 		docDir = FreeCAD.ActiveDocument.FileName.replace(docName + ".fcstd", "")
---
> 		docDir = FreeCAD.ActiveDocument.FileName.replace(docName + ".FCStd", "")
257c257,260
< 		_cmdList.insert(1, "-v")
---
> 		_cmdList.insert(1, "slice")
>                 _cmdList.insert(2, "-v")
>                 _cmdList.insert(3, "-j")
>                 _cmdList.insert(4, "/Applications/Cura.app//Contents/Resources/resources/definitions/101Hero.def.json")
259a263
>                 _cmdList.append("-l")

In this way a file is produced, however... note that I had to insert by hand the printer definition, since I could not find a default one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants