[PythonCAD] pythoncad configuration error "AttributeError: 'str' object has no attribute 'getName'"

R.K.K rkishore at att.net
Tue Dec 14 05:45:36 CET 2004


when ever I uncomment the line:
 default_dimstyle = 'dimstyle01'

dimstyle01, being the dimstyle I configured,
pythonCAD failed to start and I get the error:


Traceback (most recent call last):
  File "/usr/bin/gtkpycad.py", line 331, in ?
    main()
  File "/usr/bin/gtkpycad.py", line 311, in main
    img = GTKImage()
  File 
"/usr/lib/python2.4/site-packages/PythonCAD/Interface/Gtk/gtkimage.py", 
line 645, in __init__
    Image.__init__(self)
  File "/usr/lib/python2.4/site-packages/PythonCAD/Generic/image.py", 
line 129, in __init__
    add_defaults(self)
  File "/usr/lib/python2.4/site-packages/PythonCAD/Generic/image.py", 
line 1723, in add_defaults
    _dname = _dstyle.getName()
AttributeError: 'str' object has no attribute 'getName'


Any ideas?


More information about the PythonCAD mailing list