-
Notifications
You must be signed in to change notification settings - Fork 17
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
OpenSCAD Executable reporting as unavailable in spite of being installed + present. #19
Comments
I am getting the same issue on MacOS. Both FreeCAD and OpenSCAD are installed from Homebrew.
|
I figured it out. The error on opening CSG file generated by OpenSCAD was:
The problematic code in
It referenced the I changed it to:
And this solved the issue. There was no other way to tell FreeCAD how to find OpenSCAD executable in the GUI. |
Thank you Bougakov, it solved the issue for me too.
added the line
Alternatively it can be done in the menu Tools - Parameter Editor adding a New String Item in BaseApp\Preferences\Mod\OpenSCAD with name openscadexecutable and content C:/Program Files/OpenSCAD/openscad.exe |
Thank you Passinir for pointing out the Parameter Editor, so I didn't have to go hunting down the location of the cfg file in Linux. For me, FreeCAD and openscad were both installed with apt, and I was able to resolve the problem by setting parameter BaseApp\Preferences\Mod\OpenSCAD with name openscadexecutable and content /usr/bin/openscad. |
That preference is accessible in the GUI via Preferences->OpenSCAD->OpenSCAD Executable -- note that you'll have to load the OpenSCAD WB first, either using the Workbenches preferences panel, or by selecting it in the menu. |
I'm using the Flatpak versions of both FreeCAD and OpenSCAD.
|
CC @hfiguiere |
(in the flatpak) if you install the openscad flatpak it should just work. |
(in the flatpak) if you change the executable to something in |
Running on OS Ubuntu 18.04 machine; I have FreeCAD and OpenSCAD both installed, with the openscad executable being in /usr/bin/ directory (confirmed by running 'which openscad' as well as navigation). OpenSCAD also run when called as a command from the terminal. Yet, consistently, OpenSCADUtils.py keeps raising an error that the OpenSCAD executable is unavailable.
I actually went to the searchforopenscadexe function, and ran the code myself in Python terminal; the code does in fact return '/usr/bin/openscad' as the path to executable. So the executable is installed, is functional, and is findable by the OpenSCADUtils' own code ... yet, it is generating OpenSCADError that executable is unavailable.
At this point I'm simply flummoxed and unsure how to proceed. Any help would be appreciated.
I will say that this set-up with OpenSCAD and FreeCAD does work on a different machine of mine (also Ubuntu 18.04) but trying to replicate the set-up on a different machine is what is causing this rather arcane issue. Same app, same version of FreeCAD and OpenSCAD, same OS, different machine, weird issue of OpenSCAD executable simply not registering.
The text was updated successfully, but these errors were encountered: