I have been racking my brain trying to figure this out. I have 4 computers 
that I am testing this code on. 3 fail every time with the same error. The 
fourth does not get an error but as far as I can tell, it is not calling 
the offending def. I understand the technical error, python can not convert 
"21 01:47:43" to an int. I can not figure out what is happening between the 
last to trace backs. "File 
"C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\db.py", line 587, 
in _db_execute out = cur.execute(query, params)" and "File 
"C:\Python27\lib\sqlite3\dbapi2.py", line 63, in convert_date return 
datetime.date(*map(int, val.split("-")))".

On the computer what works, I edited dbapi2.py and added the command 'burp' 
on line 63 witch should throw another error. Nada. This tells me that on 
the computer that works, whatever is happening between the two last trace 
lines is not calling 'convert_date'.

All 4 four computers are running python 2.7.3 with web.py 0.37

The project and db are here 
<https://www.dropbox.com/sh/1zqjgtj86q033r8/LBgzPx-kLq>in my dropbox.

Thanks,

Erik


Here is the error
Traceback (most recent call last):
  File 
"C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\application.py",  
line 239, in process return self.handle()
  File 
"C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\application.py",  
line 230, in handle return self._delegate(fn, self.fvars, args)
  File 
"C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\application.py",  
line 420, in _delegate return handle_class(cls)
  File 
"C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\application.py",  
line 396, in handle_class return tocall(*args)
  File "code.py", line 24, in GET  todos = db.select('todo')
  File "C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\db.py", 
line 682, in select return self.query(qout, processed=True)
  File "C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\db.py", 
line 1030, in query out = DB.query(self, *a, **kw)
  File "C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\db.py", 
line 644, in query self._db_execute(db_cursor, sql_query)
  File "C:\Python27\lib\site-packages\web.py-0.37-py2.7.egg\web\db.py", 
line 587, in _db_execute out = cur.execute(query, params)
  File "C:\Python27\lib\sqlite3\dbapi2.py", line 63, in convert_date return 
datetime.date(*map(int, val.split("-")))
ValueError: invalid literal for int() with base 10: '21 01:47:43'

127.0.0.1:2214 - - [26/Nov/2012 18:12:05] "HTTP/1.1 GET /" - 500 Internal 
Server  Error

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/I-vO0wgFPkkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to