Ticket #4528 (closed defect: worksforme)
TypeError: unhashable type when installing trac-0.10.3 with mysql
| Reported by: | batfung@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | admin/console | Version: | 0.10.3 |
| Severity: | normal | Keywords: | mysql |
| Cc: |
Description
I got the following error when I am installing the trac 0.10.3 on MySQL 4.1.14 using MySQL-python-1.2.1_p2 (MySQLdb):
Creating and Initializing Project
Installing default wiki pages
/usr/share/trac/wiki-default/WikiPageNames => WikiPageNames
/usr/share/trac/wiki-default/TracPermissions => TracPermissions
/usr/share/trac/wiki-default/InterTrac => InterTrac
/usr/share/trac/wiki-default/TracPlugins => TracPlugins
/usr/share/trac/wiki-default/TracInterfaceCustomization => TracInterfaceCustomization
/usr/share/trac/wiki-default/TracReports => TracReports
/usr/share/trac/wiki-default/TracFastCgi => TracFastCgi
Failed to initialize environment. unhashable type
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 623, in do_initenv
self._do_wiki_load(default_dir('wiki'), cursor)
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 813, in _do_wiki_load
self._do_wiki_import(filename, page, cursor, create_only)
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 783, in _do_wiki_import
cursor, (title, int(time.time()), data, title))
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 162, in db_update
cursor.execute(sql, params)
File "/usr/lib/python2.3/site-packages/trac/db/util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/python2.3/site-packages/trac/db/util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/python2.3/site-packages/MySQLdb/cursors.py", line 165, in execute
self._warning_check()
File "/usr/lib/python2.3/site-packages/MySQLdb/cursors.py", line 80, in _warning_check
warn(w[-1], self.Warning, 3)
File "/usr/src/build/394694-i386/install/usr/lib/python2.3/warnings.py", line 57, in warn
warn_explicit(message, category, filename, lineno, module, registry)
File "/usr/src/build/394694-i386/install/usr/lib/python2.3/warnings.py", line 75, in warn_explicit
if registry.get(key):
TypeError: unhashable type
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


