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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

terramir
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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

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

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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

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

nophead
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 <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org