[wingide-users] Odd behavior under 3.0a3 and TurboGears/SQLAlchemy

Wingware Support support at wingware.com
Fri Jul 20 08:31:42 MDT 2007


Dirk Fromhein wrote:
 > I'm a bit confused by an error we are seeing under Wing 3.0a3 (and 2.1
 > actually also) and TurboGears/SQLAlchemy 1.02 in the PythonShell tab
 > panel when I execute:
 >  >>> from turbogears.database import metadata, session
 > Traceback (most recent call last):
 >  File "C:\src\SiteManager\sitemanager\<string>", line 1, in ?
 >  File
 > "c:\Python24\Lib\site-packages\TurboGears-1.0.2.2-py2.4.egg\turbogears\__init__.py",
 > line 6, in ?
 >    from turbogears.controllers import expose, flash, validate, redirect, \
 >  File
 > "c:\Python24\Lib\site-packages\TurboGears-1.0.2.2-py2.4.egg\turbogears\controllers.py",
 > line 8, in ?
 >    from dispatch import generic, strategy, functions
 >  File
 > "C:\Python24\lib\site-packages\ruledispatch-0.5a0.dev_r2306-py2.4-win32.egg\dispatch\functions.py",
 > line 126, in ?
 >  File
 > "C:\Python24\lib\site-packages\ruledispatch-0.5a0.dev_r2306-py2.4-win32.egg\dispatch\functions.py",
 > line 433, in Dispatcher
 > AttributeError: 'function' object has no attribute 'when'

I'm not sure yet what causes it, but I've managed to replicate it here and will look into
fixing it.  Oddly, the same code works when running in the debugger, which is nearly
identical to the environment in the shell.

Thanks for the bug report,

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com



More information about the wingide-users mailing list