discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Ehhh help? What am I doing wrong ? a little OT (running openscad in Python)

RT
r.d. terramir
Thu, May 9, 2019 2:56 AM

Hi trying to make some changes to the mendel90 as of right now just
changed (added MDF16 (5/8') and I want to change the size of the
boards later i.e. the width and height but as of right now  this is
the error I get thinking I need to do some python setting up for this
to work that I am missing anyone here can help ? Like calling Nop and
others to chime in please the error from cmd prompt is below.
terramir

C:\Users\terramir\Documents\Mendel90-master>python make_machine.py sturdy
openscad -D $bom=2 -o dummy.csg scad/bom.scad
Traceback (most recent call last):
File "make_machine.py", line 20, in <module>
make_machine(sys.argv[1])
File "make_machine.py", line 12, in make_machine
boms(machine)
File "C:\Users\terramir\Documents\Mendel90-master\bom.py", line 141, in boms
openscad.run("-D","$bom=2","-o", "dummy.csg", bom_maker_name)
File "C:\Users\terramir\Documents\Mendel90-master\openscad.py", line
12, in run
subprocess.call(["openscad"] + list(args), stdout = log, stderr = log)
File "C:\Python27\lib\subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 394, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Hi trying to make some changes to the mendel90 as of right now just changed (added MDF16 (5/8') and I want to change the size of the boards later i.e. the width and height but as of right now this is the error I get thinking I need to do some python setting up for this to work that I am missing anyone here can help ? Like calling Nop and others to chime in please the error from cmd prompt is below. terramir C:\Users\terramir\Documents\Mendel90-master>python make_machine.py sturdy openscad -D $bom=2 -o dummy.csg scad/bom.scad Traceback (most recent call last): File "make_machine.py", line 20, in <module> make_machine(sys.argv[1]) File "make_machine.py", line 12, in make_machine boms(machine) File "C:\Users\terramir\Documents\Mendel90-master\bom.py", line 141, in boms openscad.run("-D","$bom=2","-o", "dummy.csg", bom_maker_name) File "C:\Users\terramir\Documents\Mendel90-master\openscad.py", line 12, in run subprocess.call(["openscad"] + list(args), stdout = log, stderr = log) File "C:\Python27\lib\subprocess.py", line 172, in call return Popen(*popenargs, **kwargs).wait() File "C:\Python27\lib\subprocess.py", line 394, in __init__ errread, errwrite) File "C:\Python27\lib\subprocess.py", line 644, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified
J
JackDesBwa
Thu, May 9, 2019 6:20 AM

I didn't catch much of what you said, but the python stack states that it
cannot launch openscad because it cannot find the executable "openscad".
I don't know how it works on Windows (not used for more than a decade), but
perhaps there is not such exe in your path, or it is not named this way
(are not executable ended with .exe on this platform ?)

JackDesBwa

I didn't catch much of what you said, but the python stack states that it cannot launch openscad because it cannot find the executable "openscad". I don't know how it works on Windows (not used for more than a decade), but perhaps there is not such exe in your path, or it is not named this way (are not executable ended with .exe on this platform ?) JackDesBwa
NH
nop head
Thu, May 9, 2019 8:50 AM

Executables do have .exe extensions on Windows but you don't need to
specify that to run them.

If you look at the readme it says:

Add the directory of the OpenScad executable to your search path.

It looks like that is not the case.

On Thu, 9 May 2019 at 07:21, JackDesBwa jackdesbwa@gmail.com wrote:

I didn't catch much of what you said, but the python stack states that it
cannot launch openscad because it cannot find the executable "openscad".
I don't know how it works on Windows (not used for more than a decade),
but perhaps there is not such exe in your path, or it is not named this way
(are not executable ended with .exe on this platform ?)

JackDesBwa


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Executables do have .exe extensions on Windows but you don't need to specify that to run them. If you look at the readme it says: > Add the directory of the OpenScad executable to your search path. It looks like that is not the case. On Thu, 9 May 2019 at 07:21, JackDesBwa <jackdesbwa@gmail.com> wrote: > I didn't catch much of what you said, but the python stack states that it > cannot launch openscad because it cannot find the executable "openscad". > I don't know how it works on Windows (not used for more than a decade), > but perhaps there is not such exe in your path, or it is not named this way > (are not executable ended with .exe on this platform ?) > > JackDesBwa > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >