Modify

Opened 19 years ago

Closed 19 years ago

#190 closed defect (fixed)

"NameError: global name 'SQLiteConnection' is not defined"

Reported by: fimion@… Owned by: Brad Anderson
Priority: normal Component: DbAuthPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

I've successfully installed Trac in my shared hosting space, but unfortunately, i cannot use the default form of login, but i was hoping to use this plugin to fix that, unfortunately, when i installed the plugin (as per your instructions) i received the following error:

Oops...

Trac detected an internal error:

global name 'SQLiteConnection' is not defined
Traceback (most recent call last):
  File "/home/fimion/packages/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 130, in run
    dispatch_request(req.path_info, req, env)
  File "/home/fimion/packages/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/home/fimion/packages/lib/python2.3/site-packages/trac/web/main.py", line 80, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "/home/fimion/packages/lib/python2.3/site-packages/trac/perm.py", line 276, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "/home/fimion/packages/lib/python2.3/site-packages/trac/perm.py", line 132, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "/home/fimion/packages/lib/python2.3/site-packages/trac/perm.py", line 208, in get_user_permissions
    subjects += list(provider.get_permission_groups(username))
  File "build/bdist.linux-i686/egg/dbauth/perm.py", line 36, in get_permission_groups
  File "build/bdist.linux-i686/egg/dbauth/env.py", line 26, in get_db
NameError: global name 'SQLiteConnection' is not defined

I'm using Trac 0.9.4, python 2.3, and sqlite 3.3.4. This is all done in a local install, and it might be possble to repeat the steps i used to install.

Also, my trac install is more for testing at the moment, so a fix isn't needed immediately.

Attachments (0)

Change History (5)

comment:1 Changed 19 years ago by anonymous

Owner: changed from Brad Anderson to anonymous
Status: newassigned

Change in [444] may solve this. Let me know and I'll close the ticket.

comment:2 Changed 19 years ago by Brad Anderson

Owner: changed from anonymous to Brad Anderson
Status: assignednew

comment:3 Changed 19 years ago by Brad Anderson

Status: newassigned

comment:4 Changed 19 years ago by dragonwing@…

Yeah, the revision 444 did fix the error.

comment:5 Changed 19 years ago by Brad Anderson

Resolution: fixed
Status: assignedclosed

seems to be fixed with [444]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Brad Anderson.
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.