ImportError: cannot import name quoteattr
Guido Schimmels
guido.schimmels at freenet.de
Sat Jan 11 08:12:48 EST 2003
On Fri, 10 Jan 2003 15:39:06 -0700, Andrew Dalke wrote:
> Guido Schimmels wrote:
>> wxGlade gives me this error:
>> from xml.sax.saxutils import quoteattr
>> ImportError: cannot import name quoteattr
>
> Works for me
>
> [dalke at zebulon biopython]$ python
> Python 2.2.1 (#1, Apr 15 2002, 14:36:39)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from xml.sax.saxutils import quoteattr
> >>>
>
> Can you do the same from your interactive Python shell?
> Is the Python which wxGlade uses the same as 2.2.2? Do
> you have PyXML installed?
>
> Andrew
> dalke at dalkescientific.com
Thank you. You gave me the right idea.
Upgrading PyXML from 0.6.2 to 0.8.1 did the trick.
wxGlade is still not happy with my setup though:
File "/Developer/Applications/wxGlade/Resources/common.py", line 86,
in load_code_writers for module in os.listdir('codegen'):
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 'codegen'
I know that codegen is part of pygtk, so I upgraded to the latest
version, but still...
Maybe because codegen gets installed under /usr/share/pygtk ?
Going to ask for help on the wx-users list.
More information about the Python-list
mailing list