mecamira / dxf2gcode

Automatically exported from code.google.com/p/dxf2gcode
0 stars 0 forks source link

PDF import fails - no Main.config attribute #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PDF import fails at line 514 of dxf2gcode.py (SVN rev 365) as there is no 
attribute "Main.config"

pstoedit_cmd = self.config.pstoedit_cmd.encode("cp1252")

~/software/dxf2gcode/dxf2gcode/source$ ./dxf2gcode.py -f 
../dxf/pstoedit_test.pdf 
Core.Config               load_config  257:  - read existing varspace 
'/home/jbradshaw/software/dxf2gcode/dxf2gcode/source/config/config.cfg'
PostPro.PostProcessorConfig load_config  172:  - read existing varspace 
'/home/jbradshaw/software/dxf2gcode/dxf2gcode/source/postpro_config/postpro_conf
ig.cfg'
root                      <module>     749:  - Started with following options 
{'filename': '../dxf/pstoedit_test.pdf'}
root                      loadFile     510:  - Sending Postscript/PDF to 
pstoedit
Traceback (most recent call last):
  File "./dxf2gcode.py", line 759, in <module>
    window.loadFile(options.filename)
  File "./dxf2gcode.py", line 514, in loadFile
    pstoedit_cmd = self.config.pstoedit_cmd.encode("cp1252") #"C:\Program Files (x86)\pstoedit\pstoedit.exe"
AttributeError: 'Main' object has no attribute 'config'
jbradshaw@jbradshaw1:~/software/dxf2gcode/dxf2gcode/source$ 

Original issue reported on code.google.com by johninla...@googlemail.com on 28 Jan 2013 at 10:49

GoogleCodeExporter commented 9 years ago
Hello John, I know t this is not working up to now. This will be next to work 
on.Should not be a big issue. 

Original comment by chrisko....@googlemail.com on 29 Jan 2013 at 6:52

GoogleCodeExporter commented 9 years ago
If you want, you could also try? :-)

Original comment by chrisko....@googlemail.com on 29 Jan 2013 at 6:54

GoogleCodeExporter commented 9 years ago
I'd likely break it more... still learning Python as most of my recent coding 
is in Perl.  If no-one else gets to it before I'm confident in Python I'll 
certainly give it a shot then. For now I'm happy enough with translations and 
spacing changes :-)

Original comment by johninla...@googlemail.com on 29 Jan 2013 at 9:30

GoogleCodeExporter commented 9 years ago
Hello John,

i did fix that now. Please have a look and test it.

regards
Christian 

Original comment by christian.kohloeffel on 10 Feb 2014 at 7:29