Yes, in the latsest version there should not be the as=None argument any more.
On Oct 17, 8:50 am, Timothy Farrell <[EMAIL PROTECTED]> wrote: > Scott, > > Are you running the latest version of web2py? I submitted a patch to > Massimo that covered this particular problem monday of last week. I can > see that he's already committed it to trunk, it just hasn't made it out > to a release I guess. If you want to keep going with 2.6, it's safe to > delete the references to as=None in sql.py. > > Let us know if you run into other Py 2.6 hiccups. > -tim > > Scott Hunter wrote: > > When trying to run web2py off of Python 2.6, we got the following > > error from code that works fine under Python 2.5.x (note that the > > error trace never ventures out of the web2py code). Our immediate > > solution is to use the older Python, but thought I'd point it out > > (this is run on a Windows 2000 SP 4 machine, but got the same errors > > on Red Hat Enterprise Linux AS release 4 (Nahant Update 7) ) > > > - sbh > > > C:\Rover\RoverServer\Rover>python web2py.py -a xxx -p 8000 -i > > xxx.xxx.xxx.xxx > > > C:\Rover\RoverServer\Rover\gluon\import_all.py:328: > > DeprecationWarning: > > the md5 module is deprecated; use hashlib instead > > try: import md5 > > C:\Python26\lib\mhlib.py:83: DeprecationWarning: the multifile module > > has been d eprecated since Python 2.5 > > import multifile > > C:\Rover\RoverServer\Rover\gluon\import_all.py:340: > > DeprecationWarning: > > the Mime Writer module is deprecated; use the email package instead > > try: import MimeWriter > > C:\Rover\RoverServer\Rover\gluon\import_all.py:343: > > DeprecationWarning: > > the mimi fy module is deprecated; use the email package instead > > try: import mimify > > C:\Rover\RoverServer\Rover\gluon\import_all.py:448: > > DeprecationWarning: > > the sets module is deprecated > > try: import sets > > C:\Rover\RoverServer\Rover\gluon\import_all.py:454: > > DeprecationWarning: > > the sha module is deprecated; use the hashlib module instead > > try: import sha > > Warning: web2py requires Python 2.5 but, instead, you are running: > > 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit > > (Intel)]web2py > > Enterpr ise Web Framework Created by Massimo Di Pierro, Copyright > > 2007-2008 Version 1.42 (2008-09-12 11:33:40) WARNING:root:no file > > locking Traceback (most recent call last): > > File "web2py.py", line 4, in <module> > > from gluon.widget import start > > File "C:\Rover\RoverServer\Rover\gluon\widget.py", line 35, in > > <module> > > from gluon.main import HttpServer, save_password > > File "C:\Rover\RoverServer\Rover\gluon\main.py", line 16, in <module> > > from globals import Request, Response, Session > > File "C:\Rover\RoverServer\Rover\gluon\globals.py", line 8, in > > <module> > > from compileapp import run_view_in > > File "C:\Rover\RoverServer\Rover\gluon\compileapp.py", line 13, in > > <module> > > from sql import SQLDB, SQLField > > File "C:\Rover\RoverServer\Rover\gluon\sql.py", line 551 > > def __init__(self,table,query,as=None): > > ^ > > SyntaxError: invalid syntax > > > On Oct 14, 1:20 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > > >> Hi all; > > >> as Python 2.6 is backward compatible with 2.5 , have anyone used it as > >> Default python and , running Web2py ? > > >> Regards > > >> Phyo. > > > > tfarrell.vcf > < 1KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

