I got it from web2py.com. I'm sure that I've now installed web2py 1.76.5. The strange thing is an older version that used to work fine before I installed 1.76.5 is now giving me the same error message as the 1.76.5 one.
The oldest of all three though seems to work but not entirely (see my second message). I guess something went wrong on Dreamhost's end (or rather I did something wrong), but I can't think of what it may be. I wonder where I should look. 2010/4/5 mdipierro <[email protected]>: > where d you get it. I do not think this is a new version. > > On Apr 4, 10:02 am, Alexei Vinidiktov <[email protected]> > wrote: >> I seem to have used the wrong old version of web2py, but even now that >> I've installed the new version, I'm getting a different error: >> >> Traceback (most recent call last): >> File "/home/alvinru/phonetizer.com/gluon/restricted.py", line 62, in >> restricted >> File "/home/alvinru/phonetizer.com/applications/welcome/models/db.py", >> line 15, in <module> >> db = DAL('sqlite://storage.sqlite') # if not, use SQLite or other >> DB >> NameError: name 'DAL' is not defined >> >> In file: /home/alvinru/phonetizer.com/applications/welcome/models/db.py >> >> 2010/4/4 Alexei Vinidiktov <[email protected]>: >> >> >> >> > I don't know what I have done, but my test apps have stopped working >> > at all on Dreamhost. >> >> > The default apps still work fine. >> >> > Here's the ticket I'm getting when trying to load any app in the browser: >> >> > Error traceback Traceback (most recent call last): >> > File "/home/alvinru/phonetizer.com/gluon/restricted.py", line 62, in >> > restricted >> > exec ccode in environment >> > File "/home/alvinru/phonetizer.com/applications/pyjamas/models/db.py", >> > line 12, in <module> >> > db.define_table('todo', db.Field('task')) >> > File "/home/alvinru/phonetizer.com/gluon/sql.py", line 239, in __getattr__ >> > def __getattr__(self, key): return self[key] >> > KeyError: 'Field' >> >> > In file: /home/alvinru/phonetizer.com/applications/pyjamas/models/db.py >> > #!/usr/bin/python >> > # -*- coding: utf-8 -*- >> >> > try: >> > from gluon.contrib.gql import * # if running on Google App Engine >> > except: >> > db = SQLDB('sqlite://storage.db') # if not, use SQLite or other DB >> > else: >> > db = GQLDB() # connect to Google BigTable >> > session.connect(request, response, db=db) # and store sessions there >> >> > db.define_table('todo', db.Field('task')) >> >> > from gluon.tools import Service # new in web2py 1.56 >> > service = Service(globals()) >> >> > 2010/4/4 Alexei Vinidiktov <[email protected]>: >> >> Hello, >> >> >> I've deployed the latest version of web2py on Dreamhost using wsgi. >> >> I'm using a custom installation of Python 2.5. >> >> >> The web2py installation seems to work fine, but there's one problem. >> >> >> I've created a test program using the qooxdoo web application >> >> framework for the GUI part which mimics the functionality in the >> >> pyjamas example program: displaying a list of todo items, adding and >> >> deleting items. >> >> >> It works fine on my local development machine, it works fine on GAE, >> >> but on my Dreamhost installation I'm getting an error when trying to >> >> add a task that contains non ascii symbols, for example Russian >> >> characters as in "задание номер один" (task number one). >> >> >> I also have a pyjamas version of the same todo app and it exhibits the >> >> same behavior (works fine on GAE, not so on Dreamhost). >> >> >> Here is the message that I get back from the xmlrpc method call to >> >> addTask: >> >> >> Exception during async call: UNEXPECTED origin undefined error 100: >> >> UnicodeEncodeError: 'ascii' codec can't encode characters in position >> >> 0-5: ordinal not in range(128) >> >> >> You can see it live here: >> >>http://www.phonetizer.com/qooxdoo >> >> >> The pyjamas version is here: >> >>http://www.phonetizer.com/pyjamas >> >> >> It is also deployed on GAE and works fine here: >> >>http://web2pyapp.appspot.com/qooxdoo >> >> >> I also have a much older version of web2py deployed on Dreamhost. >> >> Unlike the new version it uses fastcgi and works as expected. >> >> >> Do you have any ideas as to why the newer version is misbehaving? >> >> >> Thanks. >> >> >> -- >> >> Alexei Vinidiktov >> >> > -- >> > Alexei Vinidiktov >> >> -- >> Alexei Vinidiktov > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" 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. > > -- Alexei Vinidiktov -- You received this message because you are subscribed to the Google Groups "web2py-users" 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.

