Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9741 closed defect (duplicate)

TypeError: unhashable type

Reported by: rmkinkaid@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.12
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

How to Reproduce

While doing a GET operation on , Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: #USER_AGENT#

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 200, in dispatch
    chosen_handler)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 346, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 330, in pre_process_request
    repo = self.get_repository(reponame)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 503, in get_repository
    repoinfo = self.get_all_repositories().get(reponame, {})
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 571, in get_all_repositories
    for reponame, info in provider.get_repositories() or []:
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 120, in get_repositories
    repos.setdefault(id, {})[name] = value
TypeError: unhashable type

System Information: Trac 0.12 Genshi 0.6 mod_python 3.2.8 MySQL server: "5.0.77", client: "5.0.77", thread-safe: 1 MySQLdb 1.2.1 Python 2.4.3 (#1, Sep 8 2010, 11:38:44) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] setuptools 0.6c7 Subversion 1.6.13 (r1002816)

I followed this walk through but substituted MySQL for sqllite: http://trac.edgewall.org/wiki/TracOnRHEL Not sure but it seems more of a permissions or authentication, I did follow the tutorial on Authentication: http://trac.edgewall.org/wiki/TracCgi#AddingAuthentication I was also trying to make sense of this tutorial http://trac.edgewall.org/wiki/TracFineGrainedPermissions

I put all the required things in my httpd.conf and my trac.conf

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 9 years ago

Resolution: worksforme
Status: newclosed

It seems MySQLdb 1.2.1 is to blame here, see duplicate #7481 and others.

And please have a look at MySqlDb, we advise to use MySQLdb 1.2.2 at minimum.

comment:2 by Christian Boos, 9 years ago

Resolution: worksformeduplicate

Duplicate, actually.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from (none) 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.