Fails to initialize project: unhashable type

8 views
Skip to first unread message

eXt

unread,
Nov 7, 2006, 6:57:01 PM11/7/06
to Trac Users
When using trac-admin to create a new environment with a mysql database
the program crashes with the following output:

/usr/share/trac/wiki-default/TracFastCgi => TracFastCgi
Failed to initialize environment. unhashable type
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
570, in do_initenv
self._do_wiki_load(default_dir('wiki'), cursor)
File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
763, in _do_wiki_load
self._do_wiki_import(filename, page, cursor, create_only)
File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
733, in _do_wiki_import
cursor, (title, int(time.time()), data, title))
File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
165, in db_update
cursor.execute(sql, params)
File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 47, in
execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 47, in
execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 165,
in execute
self._warning_check()
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 80,
in _warning_check
warn(w[-1], self.Warning, 3)
File "/usr/lib/python2.4/warnings.py", line 61, in warn
warn_explicit(message, category, filename, lineno, module,
registry)
File "/usr/lib/python2.4/warnings.py", line 79, in warn_explicit
if registry.get(key):
TypeError: unhashable type

I think this has something to do with my mysql server. This is my
settings:

mysql> status
--------------
mysql Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using readline
5.2

Connection id: 1453
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: /usr/bin/less
Using outfile: ''
Using delimiter: ;
Server version: 4.1.14-log
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 1 day 2 hours 1 min 6 sec

I searched for similar errors but I couldn't find any and since it
seems to work with mysql for other users the problem should be in my
server. Should I try to upgrade to mysql 5? Any other ideas?

Matt Good

unread,
Nov 8, 2006, 2:55:05 AM11/8/06
to Trac Users

This is a bug in the MySQLdb library. See:
http://sourceforge.net/tracker/index.php?func=detail&aid=1518642&group_id=22307&atid=374932

They say it should be fixed in their SVN version, but I don't know if
there's a workaround for it.

-- Matt Good

Reply all
Reply to author
Forward
0 new messages