Closed Kharms closed 10 years ago
Looks like it's having trouble finding the openscad binary. Try adding it to your path and see if that helps. On Apr 30, 2014 5:35 PM, "Kharms" notifications@github.com wrote:
Attempting to run bom.py I get an error. Not sure how to proceed.
[image: screen shot 2014-04-30 at 8 34 02 pm]https://cloud.githubusercontent.com/assets/7454464/2848877/55331d90-d0c8-11e3-9a26-1e1b2eec89fe.png
— Reply to this email directly or view it on GitHubhttps://github.com/nophead/Mendel90/issues/47 .
Doesn't seem to be working. I've added to both system $path and sys.path in the python script. Anything else I should try?
First, can you confirm that it is in your path by running it from the same terminal session? If you can type openscad
into a terminal, press enter and have it open successfully, then the python should be able to find it too. If things still aren't working, maybe you could try editing /Users/Owl/Printing/Mendel90/openscad.py
and changing line 9 to:
subprocess.call(["/full/path/to/openscad"] + list(args), stdout = log, stderr = log)
i.e. Substituting the call to openscad with the full path to openscad.
The error is clear, the program cannot find openscad. I got the exact same error when I tried running it without openscad installed.
This error occurs when the OpenSCAD binary is not in your PATH environment. You can fix this by editing your ~/.bash_profile The install location will vary with your installation method. When installed from the DMG, you can add the following line to the bash_profile, and restart your terminal to solve this error.
export PATH=$PATH:/Applications/OpenSCAD.app/Contents/MacOS
However, I ran in to this same problem at first too. When applying the above fix, I am presented with a new error:
Every BOM I generate is empty. It simply has headers for Vitamins and Printed, but no entries beneath.
This is mentioned in the first paragraph under "Use" in the README so I think this can be closed IMHO @nophead
Attempting to run bom.py I get an error. Not sure how to proceed.