- Posts: 863
- Thank you received: 240
can't run dxf2gcode
13 years 5 months ago #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.
13 years 5 months ago #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.
13 years 5 months ago #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 :evil:
I downloaded the linux source package of dxf2gcode and here are the first few lines of the dxf2gcode_b02.py file viewed in mc
Code:
#!/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 :evil:
Please Log in or Create an account to join the conversation.
13 years 5 months ago #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.149 seconds