[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
I'm running on linux (Ubuntu 10.04.2, or my old debian system). I start from a shell with python dev_appserver.py ../web2py/ On my old debian system, this pops up a little window where I type in my admin password and hit the start server button. On the new Ubuntu system it tells me I don't have the TK Library and I type in my admin password at the prompt. The Ubuntu install is brand new, with the latest GAE (1.5, I believe) and the latest source web2py (for 'normal' users). I'm not sure re-installing would do anything, since it is all fresh! Thx, Luis. On May 25, 10:13 pm, pbreit pbreitenb...@gmail.com wrote: Are you running on Mac, Windows or Linux? Here's the command I run on Mac: python web2py.py -a recycle -i 127.0.0.1 -p 8001' If you are running from command line you don't even use Tk. Are you using one of the binaries or the source code (I prefer source)? Have you tried re-installing?
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Good idea to copy the files to the debian system and try to see them there! Also good idea to look at the applications/admin/errors directly! I will try! Yes, I've got source code 1.95.1 (stable) for web2py GAE (when you run uploaded from google) uses python 2.5.2. Likewise, web2py recommends on 2.5.2, for backwards compatibility. My debian system has 2.5.2. Perhaps my problem is that I didn't run the setup-web2py-ubuntu.sh !!! I am trying that now! Thanks!!! L. On May 25, 10:17 pm, ron_m ron.mco...@gmail.com wrote: Looks like you get a ticket trying to display the application error ticket. I had that once but I was debugging something in trunk that was broken at the time. You mentioned you have a fully and properly working debain version. I believe it is legit to move the files under errors in your application to the system that works and look at them there using the admin interface. That might help get a handle on it. Also when the admin system gets an error you will find the ticket file under applications/admin/errors. You are using stable from web2py currently 1.95.1? I would be tempted to download the zip file, unpack it and slide it into place where the existing one is now after you rename the top directory of the old one. Then you can run a diff to see if something got changed somehow. Is there a requirement to run GAE on python 2.5? What version of Python is on your debian system where everything is working? I run standalone or under apache with wsgi on Python 2.6.5 without issues. Have a look at web2py/scripts/setup-web2py-ubuntu.sh and you can see the packages that get loaded in there. I wouldn't load in matplotlib or reportlab unless you need them. Ron
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
To make a long story short : it works now! I ran the ubuntu.sh script, and it installed a lot of stuff (still had to instal python-tk manually) tried to run admin, still got errors. Looked at the error log in admin/errors, and compared the file that it said had a syntax error -- it was very different from the same file on my working debian system!!! So somehow, my ubuntu install of web2py was seriously screwed up! Re-installing it from a new download of web2py_src.zip has everything working now!!! Thanks to you both for the help and support!!! Luis. (PS, I come from a Matlab background, and am just now switching to python. The learning curve is not too steep, and I can already see the power of python!!! I'm building a website, and GAE + web2py seemed like the best choice. web2py is awesome!!!) On May 25, 11:57 pm, Luis Goncalves lgoncal...@gmail.com wrote: Good idea to copy the files to the debian system and try to see them there! Also good idea to look at the applications/admin/errors directly! I will try! Yes, I've got source code 1.95.1 (stable) for web2py GAE (when you run uploaded from google) uses python 2.5.2. Likewise, web2py recommends on 2.5.2, for backwards compatibility. My debian system has 2.5.2. Perhaps my problem is that I didn't run the setup-web2py-ubuntu.sh !!! I am trying that now! Thanks!!! L. On May 25, 10:17 pm, ron_m ron.mco...@gmail.com wrote: Looks like you get a ticket trying to display the application error ticket. I had that once but I was debugging something in trunk that was broken at the time. You mentioned you have a fully and properly working debain version. I believe it is legit to move the files under errors in your application to the system that works and look at them there using the admin interface. That might help get a handle on it. Also when the admin system gets an error you will find the ticket file under applications/admin/errors. You are using stable from web2py currently 1.95.1? I would be tempted to download the zip file, unpack it and slide it into place where the existing one is now after you rename the top directory of the old one. Then you can run a diff to see if something got changed somehow. Is there a requirement to run GAE on python 2.5? What version of Python is on your debian system where everything is working? I run standalone or under apache with wsgi on Python 2.6.5 without issues. Have a look at web2py/scripts/setup-web2py-ubuntu.sh and you can see the packages that get loaded in there. I wouldn't load in matplotlib or reportlab unless you need them. Ron
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Good to hear you got it working but I'm surprised there were problems in the first place. You can run without the Tk stuff with these command lines: http://web2py.com/book/default/chapter/04#Command-Line-Options
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Glad to help, wish you success on your project.
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Thank you, Arbie! For a while I was using a Windows (windose) machine with the Google App Engine Launcher, and so had no console to see. Then I switched to linux, and didn't even notice that the console echoed the error output! Curiously, with an old debian machine with python 2.5.2, admin and tickets work fine (through the browser) if I run the web2py server directly instead of through the GAE. I found this the best way to debug. Occasionally I switch to running through the (localhost) GAE to make sure everything works there too. One frustrating thing (so far) is that it seems that it is much harder to debug errors in views (.html files) than in controllers, because the line numbering is all mixed up (due to the {{extend *.html}} statements). On my Ubuntu 10.04.2 machine, admin and tickets don't work. Not sure why, but might try to investigate the difference between it and my old debian machine, since it's useful functionality! Thanks for your help!!! L. On May 20, 12:40 am, Arbie Samong phek...@gmail.com wrote: Admin is disabled there. If you want to check for errors go see your console. On production, check the server logs at the left menu on your dashboard. Regards, Arbie On May 20, 11:08 am, Pierluigi Martini lgoncal...@gmail.com wrote: I am trying to deploy an application on GAE using web2py. I am running GAE SDK 1.5 on my localhost (ubuntu 8.10 , python2.5 with ssl module but not python-tk) Usingpython dev_appengine.py ../web2py works fine execpt that: If (in the browser) I try to run the admin app, or, more importantly, if I try to see a ticket due to a bug in my code, I get the error: admin is disabled because insecure channel How can I run admin and see tickets when using web2py with GAE SDK on localhost??? Note that python web2py.py works fine, with admin and tickets (although I have to type my admin password on the console because I don't have python-tk -- don't know if that makes a difference). I've looked online for quite a while and haven't found an answer yet. I hope it is possible to get debug info (tickets) running web2py with GAE! Thank you! L.
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
I run the same version of Ubuntu, no problems with seeing or generating tickets when I don't get it quite right in the code. Check the permissions on the errors directory for you app? The errors in views are from when the Python code runs which is after extend, include and translation of HTML etc. into response.write statements. There should be enough in the content of the generated Python to get you close to the right place in the original view code.
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
I run 10.04.2 and admin works fine. Are you getting error messages? I have found it's usually quite easy to resolve HTML errors. The traceback usually includes the view file's line number and/or the code listing shows the view file converted into Python which is easy enough to identify.
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
In reply to your and ron_m's messages: On Ubuntu 10.04.02 with python 2.6.5, When I have a simple error in my python controller (say, return dict(ans=ans) , where ans hasn't been defined), if I run python web2py.py : I first get the web-browser error: Internal error Ticket issued: welcome/ 127.0.0.1.2011-05-26.04-31-29.b6c7d52d-b576-406b-ba3d-74308226e85b and clicking on the ticket opens another tab with another Internal error ticket (ad infinitum if I keep on clicking) invalid request I also don't see any messages on the terminal where I ran web2py.py. If I run the gae with python dev_appserver.py ../web2py/ I first get an Internal error ticket, and if I click on it, I get a new tab with invalid request (and no link). At least with the GAE I can see the error traceback in the shell running the server! Permissions are: drwxrwxr-x 2 zb zb 4.0K 2011-05-25 21:27 errors/ and in errors/ -rw-r--r-- 1 zb zb 87K 2011-05-25 21:27 127.0.0.1.2011-05-25.21-27-52.12358da4-3e47-461b-9fae-fd190aebfb65 which seems to be OK for viewing So it's still a mystery why I don't get web tickets and admin! (Note: I am at least missing the Tk library, because I get a warning when I run web2py.py: WARNING:web2py:GUI not available because Tk library is not installed -- does not seem that has anything to do with it, though, other than being an indication that I don't technically have everything that web2py needs, which oddly enough I did have on my old debian system!) Thank you, pbreit and ron_m for your help and advice!!! Luis. On May 25, 9:03 am, pbreit pbreitenb...@gmail.com wrote: I run 10.04.2 and admin works fine. Are you getting error messages? I have found it's usually quite easy to resolve HTML errors. The traceback usually includes the view file's line number and/or the code listing shows the view file converted into Python which is easy enough to identify.
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Are you running on Mac, Windows or Linux? Here's the command I run on Mac: python web2py.py -a recycle -i 127.0.0.1 -p 8001' If you are running from command line you don't even use Tk. Are you using one of the binaries or the source code (I prefer source)? Have you tried re-installing?
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Looks like you get a ticket trying to display the application error ticket. I had that once but I was debugging something in trunk that was broken at the time. You mentioned you have a fully and properly working debain version. I believe it is legit to move the files under errors in your application to the system that works and look at them there using the admin interface. That might help get a handle on it. Also when the admin system gets an error you will find the ticket file under applications/admin/errors. You are using stable from web2py currently 1.95.1? I would be tempted to download the zip file, unpack it and slide it into place where the existing one is now after you rename the top directory of the old one. Then you can run a diff to see if something got changed somehow. Is there a requirement to run GAE on python 2.5? What version of Python is on your debian system where everything is working? I run standalone or under apache with wsgi on Python 2.6.5 without issues. Have a look at web2py/scripts/setup-web2py-ubuntu.sh and you can see the packages that get loaded in there. I wouldn't load in matplotlib or reportlab unless you need them. Ron
[web2py] Re: can't use admin, can't see tickets with localhost google appengine SDK
Admin is disabled there. If you want to check for errors go see your console. On production, check the server logs at the left menu on your dashboard. Regards, Arbie On May 20, 11:08 am, Pierluigi Martini lgoncal...@gmail.com wrote: I am trying to deploy an application on GAE using web2py. I am running GAE SDK 1.5 on my localhost (ubuntu 8.10 , python2.5 with ssl module but not python-tk) Usingpython dev_appengine.py ../web2py works fine execpt that: If (in the browser) I try to run the admin app, or, more importantly, if I try to see a ticket due to a bug in my code, I get the error: admin is disabled because insecure channel How can I run admin and see tickets when using web2py with GAE SDK on localhost??? Note that python web2py.py works fine, with admin and tickets (although I have to type my admin password on the console because I don't have python-tk -- don't know if that makes a difference). I've looked online for quite a while and haven't found an answer yet. I hope it is possible to get debug info (tickets) running web2py with GAE! Thank you! L.