can't run dxf2gcode
15 Nov 2012 00:21 #26587
by BigJohnT
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
Replied by BigJohnT 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
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.
22 May 2013 14:05 #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.
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.
22 May 2013 16:42 #34531
by ArcEye
Replied by ArcEye on topic can't run dxf2gcode
Hi
^M is symbol for carriage return
If you edit a file with a windoze editor it will litter the file with them
Get a decent file manager like mc (Midnight Commander) whose editor shows all the stray formatting characters - and remove them
regards
^M is symbol for carriage return
If you edit a file with a windoze editor it will litter the file with them
Get a decent file manager like mc (Midnight Commander) whose editor shows all the stray formatting characters - and remove them
regards
Please Log in or Create an account to join the conversation.
23 May 2013 21:00 #34586
by ktchk
Replied by ktchk on topic can't run dxf2gcode
I did use vim to look and try no ^M found tofodos also not change anything,
put a space at the end of #! line and the error change.
will try with MC see if any good.
thanks
put a space at the end of #! line and the error change.
will try with MC see if any good.
thanks
Please Log in or Create an account to join the conversation.
23 May 2013 21:17 #34587
by ArcEye
Replied by ArcEye on topic can't run dxf2gcode
I can assure you that it IS the problem
I downloaded the linux source package of dxf2gcode and here are the first few lines of the dxf2gcode_b02.py file viewed in mc
The whole thing has been written in a windoze editor by the look of it - yugh
I downloaded the linux source package of dxf2gcode and here are the first few lines of the dxf2gcode_b02.py file viewed in mc
#!/usr/bin/python^M
# -*- coding: cp1252 -*-^M
#^M
#dxf2gcode_b02.py^M
#Programmers: Christian Kohloeffel^M
# Vinzenz Schulz^M
#^M
#Distributed under the terms of the GPL (GNU Public License)^M
#^M
#dxf2gcode is free software; you can redistribute it and/or modify^M
#it under the terms of the GNU General Public License as published by^M
#the Free Software Foundation; either version 2 of the License, or^M
#(at your option) any later version.^M
#^M
#This program is distributed in the hope that it will be useful,^M
#but WITHOUT ANY WARRANTY; without even the implied warranty of^M
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the^M
#GNU General Public License for more details.^M
#^M
#You should have received a copy of the GNU General Public License^M
#along with this program; if not, write to the Free Software^M
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA^M
^M
#About Dialog^M
#First Version of dxf2gcode Hopefully all works as it should^M
#Compiled with --onefile --noconsole --upx --tk dxf2gcode_b02.py^M
^M
#Loeschen aller Module aus dem Speicher^M
import sys, os, string^M
import time^M
^M
The whole thing has been written in a windoze editor by the look of it - yugh
Please Log in or Create an account to join the conversation.
24 May 2013 19:52 #34638
by ktchk
Replied by ktchk on topic can't run dxf2gcode
Yes MC did it, the ^M was removed and I can call it up from terminal.
I did use tofrodos to try but it does not find the ^M.
Thanks
k.t.chan
I did use tofrodos to try but it does not find the ^M.
Thanks
k.t.chan
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds