A
a
hi i tried psyco+webpy
here is the error that i got
please let me know if any of you has success run psyco+webpy
thanks
import web, psyco
urls = (
'/', 'view',
'/add','add'
)
psyco.full()
psyco.log()
psyco.profile()
Launching server: http://0.0.0.0:8080/
Traceback (most recent call last):
File "C:\Python24\lib\site-packages\web.py", line 2054, in
run_wsgi_app
result = self.server.app(env, self.wsgi_start_response)
File "C:\Python24\lib\site-packages\web.py", line 1894, in wsgifunc
result = func()
File "C:\Python24\lib\site-packages\web.py", line 1872, in <lambda>
func = lambda: handle(getattr(mod, name), mod)
File "C:\Python24\lib\site-packages\web.py", line 1051, in handle
return tocall(*([urllib.unquote(x) for x in args] + fna))
File "C:\mark\web1\codepsyco.py", line 27, in GET
web.render('view.html')
File "C:\Python24\lib\site-packages\web.py", line 1707, in render
terms.update(sys._getframe(1).f_locals)
File "C:\Python24\Lib\site-packages\psyco\support.py", line 129, in
__getattr_
_
raise AttributeError, ("local variables of functions run by Psyco "
AttributeError: local variables of functions run by Psyco cannot be
accessed in
any way, sorry
Traceback (most recent call last):
File "C:\Python24\lib\SocketServer.py", line 463, in
process_request_thread
self.finish_request(request, client_address)
File "C:\Python24\lib\SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python24\lib\SocketServer.py", line 521, in __init__
self.handle()
File "C:\Python24\lib\BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "C:\Python24\lib\BaseHTTPServer.py", line 310, in
handle_one_request
method()
File "C:\Python24\lib\site-packages\web.py", line 2090, in do_GET
self.run_wsgi_app()
File "C:\Python24\lib\site-packages\web.py", line 2072, in
run_wsgi_app
internalerror()
File "C:\Python24\lib\site-packages\web.py", line 1601, in debugerror
out = str(djangoerror())
File "C:\Python24\lib\site-packages\web.py", line 1587, in
djangoerror
return render(DJANGO_500_PAGE, asTemplate=True, isString=True)
File "C:\Python24\lib\site-packages\web.py", line 1707, in render
terms.update(sys._getframe(1).f_locals)
File "C:\Python24\Lib\site-packages\psyco\support.py", line 129, in
__getattr_
_
raise AttributeError, ("local variables of functions run by Psyco "
AttributeError: local variables of functions run by Psyco cannot be
accessed in
any way, sorry
here is the error that i got
please let me know if any of you has success run psyco+webpy
thanks
import web, psyco
urls = (
'/', 'view',
'/add','add'
)
psyco.full()
psyco.log()
psyco.profile()
Launching server: http://0.0.0.0:8080/
Traceback (most recent call last):
File "C:\Python24\lib\site-packages\web.py", line 2054, in
run_wsgi_app
result = self.server.app(env, self.wsgi_start_response)
File "C:\Python24\lib\site-packages\web.py", line 1894, in wsgifunc
result = func()
File "C:\Python24\lib\site-packages\web.py", line 1872, in <lambda>
func = lambda: handle(getattr(mod, name), mod)
File "C:\Python24\lib\site-packages\web.py", line 1051, in handle
return tocall(*([urllib.unquote(x) for x in args] + fna))
File "C:\mark\web1\codepsyco.py", line 27, in GET
web.render('view.html')
File "C:\Python24\lib\site-packages\web.py", line 1707, in render
terms.update(sys._getframe(1).f_locals)
File "C:\Python24\Lib\site-packages\psyco\support.py", line 129, in
__getattr_
_
raise AttributeError, ("local variables of functions run by Psyco "
AttributeError: local variables of functions run by Psyco cannot be
accessed in
any way, sorry
Traceback (most recent call last):
File "C:\Python24\lib\SocketServer.py", line 463, in
process_request_thread
self.finish_request(request, client_address)
File "C:\Python24\lib\SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python24\lib\SocketServer.py", line 521, in __init__
self.handle()
File "C:\Python24\lib\BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "C:\Python24\lib\BaseHTTPServer.py", line 310, in
handle_one_request
method()
File "C:\Python24\lib\site-packages\web.py", line 2090, in do_GET
self.run_wsgi_app()
File "C:\Python24\lib\site-packages\web.py", line 2072, in
run_wsgi_app
internalerror()
File "C:\Python24\lib\site-packages\web.py", line 1601, in debugerror
out = str(djangoerror())
File "C:\Python24\lib\site-packages\web.py", line 1587, in
djangoerror
return render(DJANGO_500_PAGE, asTemplate=True, isString=True)
File "C:\Python24\lib\site-packages\web.py", line 1707, in render
terms.update(sys._getframe(1).f_locals)
File "C:\Python24\Lib\site-packages\psyco\support.py", line 129, in
__getattr_
_
raise AttributeError, ("local variables of functions run by Psyco "
AttributeError: local variables of functions run by Psyco cannot be
accessed in
any way, sorry