Ok Thanks a lot : it runs but it was not so easy to solve it because the
SVN code in
all messed up around line 445: it doesn't even pass tabnanny.
Is this SVN rep. obsolete??
Anyway thanx again.
> I ran into a similar problem. The fix for me was to move the sqlobject
> import statement into the context's __init__.py file. After I did
> that, things ran fine.
> On Dec 15, 2004, at 3:49 PM, Philippe Lemarre wrote:
>> Hi !
>> I've got a problem with SQLObject in WW4Py (webkit 0.8.1).
>> I' a simple script working with SQLObject as a standalone.
>> As soon as I try to plug it into webware I raise an import Error in
>> Here it is :
>> File "c:\www\site\context\Dossier.py", line 1, in ?
>> from sqlobject import *
>> File "c:\python23\lib\ihooks.py", line 398, in import_module
>> q, tail = self.find_head_package(parent, str(name))
>> File "c:\python23\lib\ihooks.py", line 439, in find_head_package
>> q = self.import_it(head, qname, parent)
>> File "c:\python23\lib\ihooks.py", line 489, in import_it
>> m = self.loader.load_module(fqname, stuff)
>> File "WebKit\ImportSpy.py", line 30, in load_module
>> File "c:\python23\lib\ihooks.py", line 274, in load_module
>> m = self.hooks.load_package(name, filename, file)
>> File "c:\python23\lib\ihooks.py", line 174, in load_package
>> return imp.load_module(name, file, filename, ("", "", PKG_DIRECTORY))
>> File "C:\Python23\lib\site-packages\sqlobject\__init__.py", line 7,
>> in ?
>> from dbconnection import ConnectionURIOpener
>> ImportError: cannot import name ConnectionURIOpener
>> / / I can make it work with version 0.5.2 of SQLObject (with a few
>> changes in the code), but i'd like to use version 0.6.x
>> I don't understand the problem. I've tried with the svn version and
>> with the downloadable one at SF.net
>> I use Python2.3.3 , apache2.xx, WW4PY last non cvs version (0.8.1 I
>> think) on Widows2000
>> Thanx in advance for help