Hi guys
I upgraded to fedora core 6 and now webpy doesnt work I m getting this
error please help me fix this am unable to fix this. it was working
previously with no problems ;(
thanks
Krypton
psycopg2.ProgrammingError at /
floating-point exception DETAIL: An invalid floating-point operation
was signaled. This probably means an out-of-range result or an invalid
operation, such as division by zero.
Python  /work/pop/web/db.py in db_execute, line 313

Traceback (innermost first)

    * /work/web/db.py in db_execute
       306. def db_execute(cur, sql_query):
       307. """executes an sql query"""
       308.
       309. web.ctx.dbq_count += 1
       310.
       311. try:
       312. a = time.time()
       313. out = cur.execute(sql_query.s, sql_query.v) ...
       314. b = time.time()
       315. except:
       316. if web.config.get('db_printing'):
       317. print >> web.debug, 'ERR:', str(sql_query)
       318. rollback()
       319. raise
      ▶ Local vars
      Variable  Value
      a
      1163919359.5605841
      cur
      <cursor object at 0x854ea48; closed: 0>
      sql_query
      <sql: 'SELECT * FROM posts WHERE category_type_id =0 ORDER BY
pageviews DESC, rank DESC, created DESC LIMIT 20 OFFSET 0'>
    * /work/pop/web/db.py in query
       358.
       359. if not processed and not isinstance(sql_query, SQLQuery):
       360. sql_query = reparam(sql_query, vars)
       361.
       362. if _test: return sql_query
       363.
       364. db_cursor = web.ctx.db_cursor()
       365. web.ctx.db_execute(db_cursor, sql_query) ...
       366.
       367. if db_cursor.description:
       368. names = [x[0] for x in db_cursor.description]
       369. def iterwrapper():
       370. row = db_cursor.fetchone()
       371. while row:
      ▶ Local vars
      Variable  Value
      _test
      False
      db_cursor
      <cursor object at 0x854ea48; closed: 0>
      processed
      False
      sql_query
      <sql: 'SELECT * FROM posts WHERE category_type_id =0 ORDER BY
pageviews DESC, rank DESC, created DESC LIMIT 20 OFFSET 0'>

    * /work/code.py in GET

       449. else:
       450. hits = web.query(hotquery, vars = locals())
       451. total_records = web.query("SELECT COUNT(*) as numrec FROM
posts where category_type_id = 0", vars =locals())
       452. else:
       453. hits = web.query(hotquery, vars = locals()) ...
       454. total_records = web.query("SELECT COUNT(*) as numrec FROM
posts where category_type_id = 0", vars =locals())
       455.
       456.
       457. len_hits = 0
       458. if hits:
       459. hits=list(hits)
      ▼ Local vars
      Variable  Value
      bestofquery
      'SELECT * FROM posts WHERE category_type_id =0 and bestof > 1
ORDER BY pageviews DESC, rank DESC, created DESC LIMIT $limit OFFSET
$off_set'
      currpage
      'news'
      flup
      {'username': '', 'loggedin': 0, 'id': 0, 'groups': '', 'email':
''}
      hotquery
      'SELECT * FROM posts WHERE category_type_id =0 ORDER BY pageviews
DESC, rank DESC, created DESC LIMIT $limit OFFSET $off_set'


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to