Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

Last modified 3 years ago

#2862 closed defect (worksforme)

TypeError: iteration over non-sequence

Reported by: kveretennicov@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.5
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Oops...

Trac detected an internal error:

iteration over non-sequence
Traceback (most recent call last):
  File "C:\python\2.4.0\Lib\site-packages\trac\web\standalone.py", line 302, in _do_trac_req
    dispatch_request(path_info, req, env)
  File "C:\python\2.4.0\Lib\site-packages\trac\web\main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\python\2.4.0\Lib\site-packages\trac\web\main.py", line 80, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "C:\python\2.4.0\Lib\site-packages\trac\perm.py", line 276, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "C:\python\2.4.0\Lib\site-packages\trac\perm.py", line 132, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "C:\python\2.4.0\Lib\site-packages\trac\perm.py", line 218, in get_user_permissions
    for user, action in rows:
TypeError: iteration over non-sequence

Steps to reproduce:

  • Initialize fresh trac environment
  • Remove all permissions via trac-admin ("permission remove")
  • Open project in browser (http://<host>/<short-project-name>)

Using tracd.

Attachments (0)

Change History (8)

comment:1 by gerber@…, 19 years ago

ran into the same problem today.

using trac 0.9 via cgi.

No details yet.

comment:2 by anonymous, 19 years ago

same thing here…

comment:3 by Matthew Good, 19 years ago

What database driver & version are you using?

comment:4 by fanch, 19 years ago

Milestone: 0.9.5
Version: 0.90.9.5

same thing here.

sqlite 3.2.1, pysqlite 2.0.5, tracd 0.9.5 (latest gentoo/amd64 testing version)

comment:5 by Emmanuel Blot, 19 years ago

Milestone: 0.9.5

(clean up milestone)

comment:6 by Matthew Good, 19 years ago

fanch: are you just seeing the "TypeError: iteration over non-sequence", or can you reproduce the same stack trace using the same steps described in the original description? I've tried it with those same versions and cannot reproduce the problem. Please make sure that you're not just seeing a similar error message that is actually occurring in another part of the system. This appears to be a problem with a DB driver that misimplemented the DB-API and is returning None instead of an empty list when the query did not return any rows. However, pysqlite implements this correctly, so I don't think that the original error will occur with pysqlite.

comment:7 by fanch, 19 years ago

sorry for the milestone :-/

reproducing exactly the same steps, I can reproduce exactly the same stack trace.

comment:8 by Christian Boos, 18 years ago

Resolution: worksforme
Status: newclosed

Can't reproduce with either trunk or 0.10-stable.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.