mecamira / dxf2gcode

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

Current svn (r263) fails to create gcode: "axis1_st_en" has no attribute "get" #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn co http://pypreview.googlecode.com/svn/trunk/ dxf2gcode
2. cd dxf2gcode
3. python2.6 source/dxf2gcode_merged.py
4. load the example file dxf/1.dxf
5. select "Export -> Write GCode" from the menu

This results in a traceback:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
    return self.func(*args)
  File "source/dxf2gcode_merged.py", line 641, in Write_GCode
    postpro.get_all_vars(pp_file_nr)
  File "/home/lars/ttt/heeks/dxf2gcode/trunk/source/config.py", line 272, in get_all_vars
    self.Pe = PointClass(x=self.config.axis1_st_en.get(),
AttributeError: 'float' object has no attribute 'get'

The variable axis1_st_en is defined in line 127 of source/config.py as a simple 
float. It was 
changed  from a DoubleVar (that would support a ".get()" call) in r161.

Since the relevant change is quite old, I am wondering, if I am doing something 
stupid like 
running the wrong python program?

I am using Debian testing.

thanks for your time,
Lars

Original issue reported on code.google.com by de...@sumpfralle.de on 24 Feb 2010 at 9:24

GoogleCodeExporter commented 9 years ago
I have the same problem with python 2.4.6 (Debian testing) and the newest 
configobj
(4.7.1 from Debian unstable - Debian testing has 4.7.0).

Original comment by i...@risom.de on 24 Feb 2010 at 9:59

GoogleCodeExporter commented 9 years ago
Hi Lars,

this is a known issue. The current trunk branch is not functional. We are 
developing 
in this branch (Merging our 2 development branches).

Please us one of the versions in the tag branch. They are the newest functional 
beta 
versions.

Link:
http://code.google.com/p/dxf2gcode/source/browse/#svn/tags

Hope this answer helps you ...

regards
Christian 

Original comment by christian.kohloeffel on 24 Feb 2010 at 5:15