can't run dxf2gcode

More
13 years 11 months ago #26564 by BigJohnT
Replied by BigJohnT on topic can't run dxf2gcode
"dir" is a dos command in linux you use "ls"... if you type "pwd" after opening up a terminal you will see the results from "print working directory" command it will be something like "/home/paul" if you download to paul then you can just open a terminal and type in ./dxf2gcode_b02.py and it will attempt to run. BTW, where did you get the file?

John

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #26565 by paulstenlund
Replied by paulstenlund on topic can't run dxf2gcode
YES I've found it thank you, thank you. Now I enter /dxf2gcode_b02.py or dxf2gcode_b02 and I get "no such file or directory" or "command not found". dir shows it there

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #26566 by paulstenlund
Replied by paulstenlund on topic can't run dxf2gcode
pwd shows home/pauls, ls shows that it is in the directory neither /dxf2gcode_b02.py or dxf2gcode_02.py will work. Don't remember where I got it where do you suggest and where should I extract it to

thanks for the help

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #26567 by paulstenlund
Replied by paulstenlund on topic can't run dxf2gcode
ok tried it again with ./dxf2gcode_b02 and got "bash: ./dxf2gcode_b02.py: python^m: bad interpreter: no such file or directory"

another download? can you suggest a source?

thanks

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #26587 by BigJohnT
Replied by BigJohnT on topic can't run dxf2gcode

paulstenlund wrote: ok tried it again with ./dxf2gcode_b02 and got "bash: ./dxf2gcode_b02.py: python^m: bad interpreter: no such file or directory"

another download? can you suggest a source?

thanks


If you type ls in the terminal does dxf2gcode_b02.py show up?

You have to use the dot slash filename.ext in Linux to execute a file... if the file is not set to executable then it won't run. open up the file manager and right click on the file and go to properties and make sure executable or something similar is checked. Once the file is set to executable if the file runs ok you can just click or double click depends on how you set that and it should run.

Or type ./dxf2gcode_b02.py in the terminal.

John

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #34527 by ktchk
Replied by ktchk on topic can't run dxf2gcode
I found out that /usr/bin/python^M: bad interpreter: for dxf2gcode_b02.py
If run /usr/bin/python dxf2gcode_b02.py it will be ok.

or run under linuxcnc "open g-code file" and point to dxf2gcode_b02.py it will work.

but strange dxf2gcode_v01 is working under the same "#!/usr/bin/python" the same line in dxf2gcode_b02 give "/usr/bin/python^M: bad interpreter:"

no ^M found in the dxf2gcode_b02.py file
some windows unix return code problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds
Powered by Kunena Forum