This is not a bug. Not all modules can be executed from the shell. The admin app has modules that cannot. Try with welcome or your own app.
massimo On May 22, 10:40 am, cesmiga <cesm...@gmail.com> wrote: > Massimo, > > I found the SVN trunk and downloaded the code. The new code > successfully creates a new application, but I see a problem when > running the following. > > r...@vm-debian-5:~/web2py_trunk/web2py.googlecode.com/svn/trunk# ./ > web2py.py -S admin -M > WARNING:root:Informix support is experimental > WARNING:root:GUI not available because Tk library is not installed > default applications appear to be installed already > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2009 > Version 1.62.3 (2009-05-22 09:54:53) > Database drivers available: SQLite3, Postgre, Informix > Starting cron... > Traceback (most recent call last): > File "/root/web2py_trunk/web2py.googlecode.com/svn/trunk/gluon/ > restricted.py", line 107, in restricted > exec ccode in environment > File "applications/admin/models/access.py", line 34, in <module> > port = int(request.env.server_port) > TypeError: int() argument must be a string or a number, not 'NoneType' > > --- AND --- > > r...@vm-debian-5:~/web2py_trunk/web2py.googlecode.com/svn/trunk# ./ > web2py.py -S testapp -M > WARNING:root:Informix support is experimental > WARNING:root:GUI not available because Tk library is not installed > default applications appear to be installed already > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2009 > Version 1.62.3 (2009-05-22 09:54:53) > Database drivers available: SQLite3, Postgre, Informix > Starting cron... > Traceback (most recent call last): > File "/root/web2py_trunk/web2py.googlecode.com/svn/trunk/gluon/ > restricted.py", line 107, in restricted > exec ccode in environment > File "applications/testapp/models/access.py", line 34, in <module> > port = int(request.env.server_port) > TypeError: int() argument must be a string or a number, not 'NoneType' > > Christopher > > cesmiga wrote: > > Massimo, > > > My apologies, but I'm having trouble finding the trunk. Would you > > point me to the location of that for download. > > > Thank you, > > Christopher > > > mdipierro wrote: > > > fixed. try trunk again. > > > > On May 22, 9:35 am, cesmiga <cesm...@gmail.com> wrote: > > > > Massimo, > > > > > Here is what I see when I try to create a new application with the > > > > latest Web2Py. From the webUI, I have no problem creating a new > > > > application. > > > > > Christopher > > > > > ++++++++++++++++++++++++++++++++++++++++++++++ > > > > > r...@vm-debian-5:/opt/web2py# ./web2py.py -S testApp > > > > WARNING:root:Informix support is experimental > > > > WARNING:root:GUI not available because Tk library is not installed > > > > default applications appear to be installed already > > > > web2py Enterprise Web Framework > > > > Created by Massimo Di Pierro, Copyright 2007-2009 > > > > Version 1.62.3 (2009-05-19 23:25:03) > > > > Database drivers available: SQLite3, Postgre, Informix > > > > Starting cron... > > > > application testApp does not exist, create (y/n)?y > > > > Traceback (most recent call last): > > > > File "./web2py.py", line 20, in <module> > > > > gluon.widget.start(cron=True) > > > > File "/opt/web2py/gluon/widget.py", line 752, in start > > > > import_models=options.import_models, startfile=options.run) > > > > File "/opt/web2py/gluon/shell.py", line 141, in run > > > > gluon.fileutils.untar('welcome.tar', adir) > > > > File "/opt/web2py/gluon/fileutils.py", line 151, in untar > > > > _extractall(file, dir) > > > > File "/opt/web2py/gluon/fileutils.py", line 133, in _extractall > > > > return _cls(filename, 'r').extractall(path, members) > > > > File "/usr/lib/python2.5/tarfile.py", line 1062, in __init__ > > > > fileobj = file(name, self.mode) > > > > IOError: [Errno 2] No such file or directory: 'welcome.tar' > > > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > > Here is what I see in the directory. > > > > > r...@vm-debian-5:/opt/web2py# ls -l applications/testApp/ > > > > total 4 > > > > drwxr-xr-x 2 root root 4096 2009-05-22 06:35 cron > > > > > mdipierro wrote: > > > > > Have you tried? > > > > > > web2py.py -h > > > > > > On May 22, 8:47 am, cesmiga <cesm...@gmail.com> wrote: > > > > > > All: > > > > > > > I'm looking for documentation about how to create a web2py > > > > > > application > > > > > > from the shell. Does anyone have information on this? Also, does > > > > > > anyone have information about the Web2Py shell and/or DAL. > > > > > > > Thank you, > > > > > > Christopher > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---