From: Oleg Broytman <p...@phd.pp.ru> To: sqlobject-discuss@lists.sourceforge.net Date: Friday 09 April 2010 > On Thu, Apr 08, 2010 at 07:50:59PM -0300, Juan Manuel Santos wrote: > > File "/usr/local/lib/python2.6/dist-packages/sqlobject/main.py", line > > > > 1211, in __init__ > > > > if self._connection is not connection: > [skip] > > > "No connection has been defined for this thread " > > > > AttributeError: No connection has been defined for this thread or process > > This is a very fresh code, I added it in the last releases. Try a > release before the very last - 0.11.3 or 0.12.1. > > Oleg.
Actually I have 0.11.2 on my Gentoo box (if that suffices). I had a friend test the code on another Gentoo box and it worked alright. This problem is raised both on Ubuntu (Jaunty) and Debian (a mix between stable, testing and unstable), which IIRC have older versions (I checked the number yesterday but forgot it ;p but it was 0.10 or older). The strange thing is that a similar error (the one I posted) happened with the svn version. From: Oleg Broytman <p...@phd.pp.ru> To: sqlobject-discuss@lists.sourceforge.net Date: Friday 09 April 2010 > On Thu, Apr 08, 2010 at 06:47:00PM -0300, Juan Manuel Santos wrote: > > I don't > > set any connection globally (since my plans are for the application to be > > able to manage several connections to different databases at the same > > time). Instead, I pass a connection parameter to every select, class > > creation and any SQLObject method which may require it. > > At waht phase the error is raised? Do you use fromDatabase=True? > > Oleg. This error was raised on the first object creation the program does. However, If I make the code in main.py workaround this, it fails on the first select the program does. And no, I don't use fromDatabase = True, but would that help? I'd gladly try it out if it does. Thanks, Juan Manuel Santos ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss