Re: Weird scope error[SOLVED?]

2008-04-06 Thread Rory McKinley
Kay Schluehr wrote: > On 5 Apr., 23:08, Michael Torrie <[EMAIL PROTECTED]> wrote: > >> You need to either fix all these imports in these other modules (that >> are probably in the site_packages folder), or modify the python import >> path so that it can find ElementTree directly. > > I'd prefer

Re: Weird scope error

2008-04-05 Thread Kay Schluehr
On 5 Apr., 23:08, Michael Torrie <[EMAIL PROTECTED]> wrote: > You need to either fix all these imports in these other modules (that > are probably in the site_packages folder), or modify the python import > path so that it can find ElementTree directly. I'd prefer to set an alias in the module c

Re: Weird scope error

2008-04-05 Thread Michael Torrie
Rory McKinley wrote: > Gary Herron wrote: > >> Python has no such thing as this kind of a "global scope". (True, each >> module has its own global scope, but that's not what you are talking >> about.) So you'll have to fix the import for *every* module that needs >> access to ElementTree.

Re: Weird scope error

2008-04-05 Thread Rory McKinley
Gary Herron wrote: > Python has no such thing as this kind of a "global scope". (True, each > module has its own global scope, but that's not what you are talking > about.) So you'll have to fix the import for *every* module that needs > access to ElementTree.You might make the change a

Re: Weird scope error

2008-04-05 Thread Gary Herron
Rory McKinley wrote: > Hi > > I am trying to use the TidyHTMLTreeBuilder module which is part of > elementtidy, but I am getting what appears to be some sort of scope > error and it is scrambling my n00b brain. > > The module file (TidyHTMLTreeBuilder.py) tried to import ElementTree by > doing t

Re: Weird scope error

2008-04-05 Thread Kay Schluehr
On 5 Apr., 17:27, Rory McKinley <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to use the TidyHTMLTreeBuilder module which is part of > elementtidy, but I am getting what appears to be some sort of scope > error and it is scrambling my n00b brain. > > The module file (TidyHTMLTreeBuilder.py) tried

Weird scope error

2008-04-05 Thread Rory McKinley
Hi I am trying to use the TidyHTMLTreeBuilder module which is part of elementtidy, but I am getting what appears to be some sort of scope error and it is scrambling my n00b brain. The module file (TidyHTMLTreeBuilder.py) tried to import ElementTree by doing the following: from elementtree imp