Modify ↓
Ticket #4981 (closed defect: worksforme)
Opened 5 years ago
Last modified 4 years ago
Floating error under Debian Etch
| Reported by: | alex.yanchenko@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | general | Version: | |
| Severity: | critical | Keywords: | needinfo |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
I'm using Trac installed via apt-get under Debian Etch. The problem is that time to time I get a message saying
Trac detected an internal error:
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 184, in dispatch
req.session = Session(self.env, req)
File "/var/lib/python-support/python2.4/trac/web/session.py", line 53, in __init__
self.get_session(req.authname, authenticated=True)
File "/var/lib/python-support/python2.4/trac/web/session.py", line 72, in get_session
(sid, int(authenticated)))
File "/var/lib/python-support/python2.4/trac/db/util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/var/lib/python-support/python2.4/trac/db/util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 3111, in execute
raise OperationalError, msg
OperationalError: ERROR: DECLARE CURSOR may only be used in transaction blocks
Refreshing the page helps.
Attachments
Change History
comment:1 Changed 5 years ago by cboos
- Keywords needinfo added
- Milestone 0.10.4 deleted
comment:2 Changed 4 years ago by sid
- Resolution set to worksforme
- Status changed from new to closed
No answers in 6 months. Closing. If you're still having this issue, please respond to questions by cboos.
Note: See
TracTickets for help on using
tickets.



What postgresql and PgSql? version are you using?
Consider trying psycopg2, to see if you're also gettings those errors with those bindings.