Sorry this patch will not do. there must be one locker or the apps are not serialized when profiling.
I fixed it in trunk anyway (please check). Massimo On Feb 11, 3:55 am, Douglas Soares de Andrade <dsandr...@gmail.com> wrote: > Em Quarta-feira 11 Fevereiro 2009, às 05:02:16, Wes James escreveu: > > > > > Massimo, > > > I just downloaded trunk and tried starting as normal and get: > > > WARNING:root:unable to import dbhash > > default applications appear to be installed already > > web2py Enterprise Web Framework > > Created by Massimo Di Pierro, Copyright 2007-2009 > > Version 1.56.2 (2009-02-10 23:57:30) > > Database drivers available: SQLite3, Postgre > > please visit: > > http://127.0.0.1:6667 > > use "kill -SIGTERM 711" to shutdown the web2py server > > Traceback (most recent call last): > > File "./web2py.py", line 14, in <module> > > start() > > File "/opt/1web2py/gluon/widget.py", line 825, in start > > path=options.folder) > > File "/opt/1web2py/gluon/main.py", line 508, in __init__ > > log_filename, profiler_filename, web2py_path=path), > > File "/opt/1web2py/gluon/main.py", line 425, in appfactory > > if os.path.exists(profilerfilename): > > File > > "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pos > >ixpath.py", line 171, in exists > > st = os.stat(path) > > TypeError: coercing to Unicode: need string or buffer, NoneType found > > > but if i start with the command below it works fine. > > Hi Wes, > > Try with the attached patch. > > PS: Massimo, im sending to you too, so if that is alright we can put it in > trunk. > > > -wj > > > On Tue, Feb 10, 2009 at 11:01 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > New in trunk (highly experimental) > > > > web2py.py -F profiler.log > > > > will log all requests with profile details in profiler.log. This makes > > > thing slower. > > > I am not sure this is the proper way of doing it. Any feed back will > > > be appreciated. > > > > It should be trivial to build an app (or an admin page) to browse and > > > search the profiler.log file if it exists. > > > > Massimo > > > > 0020-fix-profilerlog.patch > 4KViewDownload --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---