Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7701 closed defect (fixed)

AttributeError: 'psycopg2._psycopg.cursor' object has no attribute 'rows'

Reported by: Oliver Metz Owned by: Radek Bartoň
Priority: normal Component: ScreenshotsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Hi. Since r8663 I get an error when clicking on the screenshots button in trac.

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.8dev_r0-py2.6.egg/trac/web/", line 450, in _dispatch_request
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.8dev_r0-py2.6.egg/trac/web/", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/tracscreenshots/", line 154, in process_request
    template, content_type = self._do_actions(context, actions)
  File "build/bdist.linux-x86_64/egg/tracscreenshots/", line 555, in _do_actions
  File "build/bdist.linux-x86_64/egg/tracscreenshots/", line 66, in get_components
    ('name', 'description'))
  File "build/bdist.linux-x86_64/egg/tracscreenshots/", line 53, in _get_items
    for row in context.cursor.rows:
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.8dev_r0-py2.6.egg/trac/db/", line 38, in __getattr__
    return getattr(self.cursor, name)
AttributeError: 'psycopg2._psycopg.cursor' object has no attribute 'rows'

For more information please look at the user report:

Thank you.

Attachments (0)

Change History (3)

comment:1 Changed 12 years ago by Radek Bartoň

Status: newassigned

Ok, I'll check that, but there is one thing that bugs me: Why is the error in backtrace at and when for revision r8663 it should be at and api:72, respectively?

See .

comment:2 Changed 12 years ago by Radek Bartoň

Resolution: fixed
Status: assignedclosed

Changeset r8987 fixes that.

comment:3 Changed 12 years ago by Oliver Metz

It works. Thanks again.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.