Hello, On Wed, 2006-06-28 at 12:40, Jens Diemer wrote: > Jens Diemer schrieb: > > Is SQLAlchemy is compatible with Python v2.2.1 and MySQLdb 0.9.2 ??? > > I have patched the source and insert "from __future__ import > generators", so yield is available. > > I take sets.py from Python 2.4 > > But i have at least two problems: > > File "sqlalchemy\types.py", line 202, in PickleType > def __init__(self, protocol=pickle.HIGHEST_PROTOCOL, pickler=None): > AttributeError: 'module' object has no attribute 'HIGHEST_PROTOCOL'
Since you're building your own, choose the protocol name you want to use and specify it. > > File "sqlalchemy\engine\__init__.py", line 90, in create_engine > strategy = kwargs.pop('strategy', default_strategy) > AttributeError: 'dict' object has no attribute 'pop' if kwargs.has_key('strategy'): strategy = kwargs['strategy'] del kwargs['strategy'] else: strategy = default_strategy Or any other idiom of your choice. > The pickle.HIGHEST_PROTOCOL Problem can be easy fix with a try-except. > I don't know how to fix the Problem with dict.pop() Good luck, William. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users