>From: Erik Jessen

>Sent: Tuesday, May 31, 2011 10:58 AM
>
> I got generateds.py to run on cmdline.
> 
> I then installed python/gtk.
> 
> I tried the gui, by cd’ing into the ‘gui’ directory and typing:
> 
> python generateds_gui.py
> 
> Traceback (most recent call last):
>   File "generateds_gui.py", line 2147, in <module>
>     main()
>   File "generateds_gui.py", line 834, in main
>     capture_ui_names()
>   File "generateds_gui.py", line 783, in capture_ui_names
>     items = generateds_gui_session.sessionType.member_data_items_
> AttributeError: 'module' object has no attribute 'sessionType'
> 

Erik -

I'm trying to reproduce that exception/traceback, but have not been
able to.  Were you doing something specific in the application once
it came up, or did this error happen immediately?

Perhaps the error does not occur on my machine because I've
installed generateDS.py using:

    $ python setup.py build
    $ sudo python setup.py install

although your traceback does not seem to be related to that
difference.

*But*, it's been awhile since I've done any work on generateds_gui.
And, currently it is broken in that it is not capable of loading a
session file.  (No, wait.  See update, below.)

I still use it myself, when I want to create a new session file.
Which I save, and then use the session file with generateDS.py::

    $ generateDS.py --session=mytest.session

Then, when needed, I edit the session file by hand with my text
editor.  That's not very convenient, but it's just XML, after all.

The reason for this problem with loading sessions, as I recall, is
that there was a change to Gtk such that the short-cut I used to
access individual GUI items (a table look-up) no longer worked.
Fixing it would mean writing code for each specific UI item.  I've
been too lazy to do that.  Perhaps when I get very bored and have
nothing to do ...

Wait. Wait.  I took another a look.  That wasn't the problem after
all.  And, the fix was much easier.  I'll send you a patch in a
separate email.  So now I think I have a fix to *my* bug.  But, I
still do not know what is causing *your* traceback.

And, thank you for motivating me to look into this again.

- Dave

 
-- 


Dave Kuhlman
http://www.rexx.com/~dkuhlman

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to