[web2py] Import error for guppy

2014-02-20 Thread David Phillips
My app uses web2py as a background task (as described in Ch. 4 of the web2py docs). I have a slow memory leak in the background task. I'm trying to run guppy periodically to find it but I am getting a error when I try to use it. The relevant part of my code looks like this: import guppy

[web2py] Re: Manual upload to database fails to write blob

2012-10-29 Thread David Phillips
functions? Any help would gratefully received. David On Friday, October 26, 2012 1:27:09 PM UTC-5, David Phillips wrote: I am attempting to create and store a thumbnail image in a MySQL database. The source image comes from the same record and has already been stored in the database. When my code

[web2py] Manual upload to database fails to write blob

2012-10-26 Thread David Phillips
I am attempting to create and store a thumbnail image in a MySQL database. The source image comes from the same record and has already been stored in the database. When my code executes, the thumbnail name gets written to the thumb field, but the thumb_data field is null. My table is defined

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread David Phillips
Thanks to everyone for their replies. Bruno, that is a neat trick. Unfortunately, it didn't solve my problem. I generated a new password and restarted the apache server, but I am seeing the same behavior -- request.is_https is returning false even though I am using https and I cannot use the

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread David Phillips
of request.env.wsgi_url_scheme and request.env.https It will help me understand what is going on. I do not think we changed the request.is_https behavior. web2py my not be able to detect https if behind a proxy. Massimo On Tuesday, 18 September 2012 10:27:34 UTC-5, David Phillips wrote: Thanks

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread David Phillips
are from the WSGI environment. HTTPS is not defined and WSGI_URL_SCHEME is http. I am suing web2py 2.0.9 with apache and I get request.env.wsgi_url_scheme: https request.env.https: 1 Massimo On Tuesday, 18 September 2012 10:50:55 UTC-5, David Phillips wrote: Sure. [Tue Sep 18 15:49:25

[web2py] HTTPS admin access has stopped working

2012-09-17 Thread David Phillips
I had a web2py 1.99.7 app running on Elastic Beanstalk. I was able to use the admin interface over https. I then upgraded web2py to 2.0.8 and uploaded it to EB. Now I am getting this message when I try to access the admin interface over HTTPS: ATTENTION: Login requires a secure (HTTPS)

Re: [web2py] MySQL DB reads have stopped working for one table in a background process

2012-07-25 Thread David Phillips
TRANSACTION. Massimo On Tuesday, 24 July 2012 22:26:26 UTC-5, David Phillips wrote: Hello, Massimo. What changed? Did you upgrade? What web2py version? I removed a task in the background process that was periodically calling db.commit. In its place, I started using memcache where I

[web2py] MySQL DB reads have stopped working for one table in a background process

2012-07-24 Thread David Phillips
On the eve of delivering a project to a client, I've come up against a problem that has me stumped. select() statements on one of my mysql tables have stopped working. My application is a web2py web server and a background process (also called a homemade task queue in the web2py book). They

Re: [web2py] Re: MySQL DB reads have stopped working for one table in a background process

2012-07-24 Thread David Phillips
it lock or do you get a traceback? Which database driver? People have reported problems with pymysql but not with mysqldb. On Tuesday, 24 July 2012 19:42:29 UTC-5, David Phillips wrote: On the eve of delivering a project to a client, I've come up against a problem that has me stumped

[web2py] Threads with homemade task queues

2012-05-18 Thread David Phillips
I've read hearty admonishments on this forum against creating threads in controller and model files, but what about the case of a background job launched as a separate process – like what chapter four of the book calls homemade task queues and chapter eight calls a background task? My

Re: [web2py] Reading web2py tickets on app engine

2012-04-29 Thread David Phillips
Thank you, howesc and especially Ricardo. That code snippet worked. I can now see my tickets on app engine. On Tuesday, April 24, 2012 8:41:33 PM UTC-5, Ricardo Pedroso wrote: On Tue, Apr 24, 2012 at 12:57 AM, David Phillips david@gmail.com david.phillips@gmail.com wrote: I don't

[web2py] Reading web2py tickets on app engine

2012-04-23 Thread David Phillips
I don't know how to read the tickets web2py generates on app engine. On devserver, the tickets are shown in their entirety, but on the production server, the datastore viewer only shows the first 1000 or so characters. I can't figure out a way to see the entire ticket. The database management

[web2py] Curious appengine memcache exception

2012-04-13 Thread David Phillips
I am stumped by a problem I am having with memcache on App Engine. It mostly looks like a memcache issue but I am seeing something funny when I step through the code. I am getting an excpetion (TypeError: 'NoneType' object is not callable) when writing an instance to memcache. The instance

[web2py] Viewing web2py tickets on Google's devserver

2012-04-13 Thread David Phillips
How do you view web2py tickets that are generated while running on Google's devserver? When I look at a ticket using the SDK console, it is encoded in a way that I don't recognize. Like this: (dp0 S'output' p1 Stype 'exceptions.TypeError' 'NoneType' object is not callable p2 sS'layer' p3

[web2py] Re: unit testing web2py and app engine

2012-03-21 Thread David Phillips
. On Tuesday, March 20, 2012 1:54:03 PM UTC-7, David Phillips wrote: I am writing a web application using web2py for execution on app engine. I've deployed other web2py apps there but I've never used any app engine-specific utilities. In this project I want to use app engine's

[web2py] Re: unit testing web2py and app engine

2012-03-21 Thread David Phillips
I should have mentioned one other thing. Before running my unit test, I set the PYTHONPATH environment variable so that I could import the Google app engine libraries. export PYTHONPATH=~/dev/python/google/google_appengine_1.6.3_source/ google_appengine On Mar 21, 11:14 am, David Phillips

[web2py] unit testing web2py and app engine

2012-03-20 Thread David Phillips
I am writing a web application using web2py for execution on app engine. I've deployed other web2py apps there but I've never used any app engine-specific utilities. In this project I want to use app engine's taskqueue and run it on a backend instance. I'm developing on app engine's dev_appserver

[web2py] Re: Migration on Datastore

2012-03-08 Thread David Phillips
Yes, that worked. Thanks for the suggestion, Massima. On Mar 7, 5:12 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: can you try Field('description', 'text', length = 2048), On Wednesday, 7 March 2012 15:48:51 UTC-6, David Phillips wrote: I have an App Engine web app

[web2py] Migration on Datastore

2012-03-07 Thread David Phillips
I have an App Engine web app in production. I defined a field in a database table as a string with no length. Field('description'), Now I find that the field needs to handle 2,000 characters. That means that the field needs to be changed in the Datastore entity from a ByteString type to

[web2py] Re: web2py and self-signed SSL certificates

2012-03-02 Thread David Phillips
/setup-web2py-ng...), both of which include commands for creating a self-signed certificate using OpenSSL -- perhaps you can look at them for some guidance. Anthony On Thursday, March 1, 2012 8:48:08 PM UTC-5, David Phillips wrote: I freely admit that I don't understand how https, SSL

[web2py] admin over https but not appadmin

2012-03-02 Thread David Phillips
I'm confused by the behavior of my web app. It is deployed on a remote server using ubuntu+apache+web2py+mysql with a self-signed certificate and was installed using the setup- web2py-ubuntu.sh script. Everythings seems functional except that I can't access my application's appadmin controller.

[web2py] web2py and self-signed SSL certificates

2012-03-01 Thread David Phillips
I freely admit that I don't understand how https, SSL, and public key infrastructure works. It doesn't seem like it should be hard to use but whenever I try, things don't work. For instance, I wanted to access the admin interface for my web2py application on a remote host. My thought was that I

[web2py] web2py and self-signed SSL certificates

2012-03-01 Thread David Phillips
I freely admit that I don't understand how https, SSL, and public key infrastructure works. It doesn't seem like it should be hard to use but whenever I try, things don't work. For instance, I wanted to access the admin interface for my web2py application on a remote host. My thought was that I

[web2py] Re: Database deadlocks with new scheduler

2012-02-29 Thread David Phillips
db.commit() immediately after. Would is solve the problem? On Feb 27, 9:14 pm, David Phillips david.phillips@gmail.com wrote: I am experiencing database deadlocks in a worker processes that is being scheduled by web2py's newscheduler. I'm using the latest web2py with Python 2.7.2

[web2py] Database deadlocks with new scheduler

2012-02-27 Thread David Phillips
I am experiencing database deadlocks in a worker processes that is being scheduled by web2py's new scheduler. I'm using the latest web2py with Python 2.7.2 and MySQL (a recent release) on OS X 10.7.3. The worker does a lengthy calculation that I wanted to take off the http thread. Every time I