[tahoe-dev] python 2.4 no longer supported?
Brian Warner
warner at lothar.com
Sun Sep 13 18:37:19 PDT 2009
David Abrahams wrote:
> I got this when running "python setup.py install" with a python 2.4
>
> with self.con:
Wow, that's annoying. Sounds like we should file a bug against pysqlite
to stop using non-2.4 features? Given that one of the big reasons for
folks to use pysqlite is for compatibility with python2.4 (since
python2.5+2.6 include sqlite3 in the stdlib), I'm surprised to see them
start using 2.5/2.6-only features like "with".
You might be able to find an earlier relase of pysqlite (one which
doesn't use 'with') and install it manually. Once you've done that,
tahoe's setup.py ought to detect it and use it, instead of trying to
download+install a new one. I don't know of anything you could possibly
pass to tahoe's install command that would cause it to intentionally
download an older version of pysqlite.
wacky,
-Brian
> ^
> SyntaxError: invalid syntax
> zip_safe flag not set; analyzing archive contents...
> File "/export/home/dave/src/allmydata-tahoe-1.5.0/support/lib/python2.4/site-packages/pysqlite-2.5.5-py2.4-solaris-2.11-i86pc.egg/pysqlite2/test/py25tests.py", line 48
> with self.con:
> ^
> SyntaxError: invalid syntax
> Adding pysqlite 2.5.5 to easy-install.pth file
>
> I guess you need to adjust something about the selected pysqlite release
> or simply dump 2.4 support?
>
More information about the tahoe-dev
mailing list