i cant do anything without example code reproducing the issues. the first error in particualr seems clear that its a user-configuration issue, which is perhaps cascading to the rest of the issues.
On Feb 17, 2007, at 11:47 PM, Yves-Eric wrote: > > Hi all, > > I am porting an existing webapp to Pylons/SQLAlchemy. Since upgrade to > 0.3.4, I now get 4 errors on code that used to work with 0.3.3. I have > looked in the tracker and in this group but they do not seem to have > been reported yet, so here are the tracebacks. I am newbie on this > group so please let me know what else to do to help investigate these > problems. Thank you. > > > 1) First load of a page: > > File '/home/yemartin/workspace/boss2/boss2/controllers/Parties.py', > line 7 in __before__ > self.query = self.dbsession.query(model.Party) > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/session.py', line 203 > in query > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 1470 > in class_mapper > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 259 > in compile > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 274 > in _compile_all > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 299 > in _do_compile > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 334 > in _compile_inheritance > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 302 > in _do_compile > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 520 > in _compile_selectable > ArgumentError: Could not locate a polymorphic_identity field for > mapper 'Mapper|Party|party'. This field is required for polymorphic > mappers > > > 2) reloading the same page > > File '/home/yemartin/workspace/boss2/boss2/controllers/Parties.py', > line 7 in __before__ > self.query = self.dbsession.query(model.Party) > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/session.py', line 203 > in query > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/query.py', line 32 in > __init__ > KeyError: <sqlalchemy.sql.Alias object at 0xb6c04dcc> > > > 3) on another page I get: > > File '/home/yemartin/workspace/boss2/boss2/controllers/Invoices.py', > line 8 in __before__ > self.query = self.dbsession.query(model.Invoice) > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/session.py', line 203 > in query > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 1470 > in class_mapper > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 259 > in compile > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 279 > in _compile_all > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/mapper.py', line 506 > in _initialize_properties > AttributeError: 'Mapper' object has no attribute '_Mapper__props' > > > 4) reloading that other page: > > File '/home/yemartin/workspace/boss2/boss2/controllers/Invoices.py', > line 12 in list > stores = stores_query.select() > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/query.py', line 247 in > select > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/query.py', line 251 in > select_whereclause > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/query.py', line 464 in > compile > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/interfaces.py', line > 85 in setup > File 'build/bdist.linux-i686/egg/sqlalchemy/orm/interfaces.py', line > 71 in _get_context_strategy > AttributeError: 'ColumnProperty' object has no attribute 'strategy' > > > Cheers, > > -- > Yves-Eric > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
