Thread: [Anygui-users] Re: Import error on widget use - fixed...
Brought to you by:
mlh
|
From: Terry <tg...@ci...> - 2002-02-07 22:59:01
|
> Yep. You don't have the module named weakref, as the error says. > You should upgrade to Python 2.1 (as pointed out by the FAQ at > anygui.org/faq). I first installed Python 2.1.1 from an rpm at Python.org that I had previously downloaded. Got exactly the same 'weakref' error as with the 2.0 that came with SuSE 7.2. Undaunted, I got Python 2.2 and installed it - and the error went away. :-) (Using the just released AnyGUI 0.1!) I don't know why since all the docs say weakref is in 2.1, but maybe the FAQ should read 2.2? I'm a newbe to Python (but have been programming since ENIAC II times), so bear with me. I'm starting a medium sized business app development (Python, Postgres, AnyGUI), and am hoping that AnyGUI will move along enough to keep me from too much re-work. I'll just be building prototype screens for a while, but I will be 'user-developer' testing AnyGUI quite a lot. I would like to put in a small request for some mega-widgets - Combo Box and Notebook are the most prominent by far as they are heavily used in business apps. I could deal with only a Tkinter backend for 3-6 months.... Thanks, Terry |
|
From: Terry <tg...@ci...> - 2002-02-08 14:22:02
|
> How odd... And you're sure you used 2.1? (That they weren't installed > in parallell, and the 2.0 version was used instead?) At this point in my knowledge level I can't be certain, however I got thousands of mail messages from a cron type program in which python was complaining about a depreciated function. These went away after I reinstalled 2.0 via yast. (I'm using several machines, all SuSE 7.2) > Have you tried to just start the interactive interpreter (in 2.1) and > import weakref? It works for me... Did exactly that. The version number reported was 2.1.1 just as what I installed, but no weakref. I'll go throught it again to check.... > What do you mean? It will move along, yes -- but that might mean some > re-work, since the API might change still (as the warning in the > documentation says)... No extreme changes, but changes nonetheless. > (Of course we're happy to help you fix things related to these > changes, though :) I knew that, I've been lurking on the developer list for a few months. Thanks, Terry |
|
From: Magnus L. H. <ma...@he...> - 2002-02-08 08:06:15
|
Terry <tg...@ci...>: > > > > > Yep. You don't have the module named weakref, as the error says. > > You should upgrade to Python 2.1 (as pointed out by the FAQ at > > anygui.org/faq). > > I first installed Python 2.1.1 from an rpm at Python.org that I had > previously downloaded. Got exactly the same 'weakref' error as with > the 2.0 that came with SuSE 7.2. How odd... And you're sure you used 2.1? (That they weren't installed in parallell, and the 2.0 version was used instead?) Have you tried to just start the interactive interpreter (in 2.1) and import weakref? It works for me... > Undaunted, I got Python 2.2 and installed it - and the error went > away. :-) That's nice :) > (Using the just released > AnyGUI 0.1!) I don't know why since all the docs say weakref is in > 2.1, but maybe the FAQ should read 2.2? Hm. We have (for now) decided to support 2.1, so if that's not working I'd consider it a problem... On the other hand, only supporting 2.2 would give us lots of neat opportunities in other areas ;) (Not really an option for a while, though, I think.) > I'm a newbe to Python (but have been programming since ENIAC II times), > so bear with me. I'm starting a medium sized business app development > (Python, Postgres, AnyGUI), and am hoping that AnyGUI will move along > enough to keep me from too much re-work. What do you mean? It will move along, yes -- but that might mean some re-work, since the API might change still (as the warning in the documentation says)... No extreme changes, but changes nonetheless. (Of course we're happy to help you fix things related to these changes, though :) > I'll just be building > prototype screens for a while, but I will be 'user-developer' testing > AnyGUI quite a lot. Very good! We need testers/users to make things more stable. > I would like to put in a small request for some mega-widgets - Combo > Box and Notebook are the most prominent by far as they are heavily used > in business apps. I could deal with only a Tkinter backend for 3-6 > months.... We'll get combo box and notebook, and mega-widgets. They're in the TODO file (found in the distribution). But first we need to re-implement a big chunk of the internals -- adding features before we've done that will only mean re-adding them afterwards... But by release 0.2 (and certainly 0.3) Anygui will be much more complete than it is now. (0.1 is more of a prototype/proof-of-concept.) > Thanks, > > Terry -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |