> > File "/usr/local/gump/public/gump/python/gump/output/statsdb.py", line
181, in getFloat
> > if self.db.has_key(key): val=self.db[key]
> > File "/usr/lib/python2.3/bsddb/__init__.py", line 142, in has_key
> > return self.db.has_key(key)
> > TypeError: String or Integer object expected for key, unicode found
>
> An easy fix for this would be to add "key=str(key)" immediately before
> this line, and in other similar methods. It might be preferable to do
> this upstream (like when the string is read).
Sam, is it different levels of Python that cause this, or OS, or DBM
implementation or something else? The code tries to fall back to an empty
map [using {}] when it can't get a database (as with M$), but I don't see
that ought cause my problem (testing on Linux).
I have this set-up (see link) yet I get this error (below) with latest from
CVS HEAD:
http://gump.try.sybase.com/#Workspace+Definition
regards
Adam
----------------------------------------------------------------------------
-
Traceback (most recent call last):
File "gump/check.py", line 55, in ?
result = GumpEngine().performCheck(run)
File "/gump/gump/python/gump/engine.py", line 84, in performCheck
return self.perform(run, GumpTaskList(['check','document']) )
File "/gump/gump/python/gump/engine.py", line 94, in perform
self.performTasks(run,taskList)
File "/gump/gump/python/gump/engine.py", line 108, in performTasks
task.invoke(run)
File "/gump/gump/python/gump/engine.py", line 947, in invoke
return self.method(run)
File "/gump/gump/python/gump/engine.py", line 878, in loadStatistics
self.processStatistics(run,1)
File "/gump/gump/python/gump/engine.py", line 907, in processStatistics
db.loadStatistics(workspace)
File "/gump/gump/python/gump/output/statsdb.py", line 208, in
loadStatistics
rs=self.getRepositoryStats(repo.getName())
File "/gump/gump/python/gump/output/statsdb.py", line 81, in
getRepositoryStats
self.getBaseStats(stats)
File "/gump/gump/python/gump/output/statsdb.py", line 110, in getBaseStats
stats.successes=self.getInt(stats.successesKey())
File "/gump/gump/python/gump/output/statsdb.py", line 178, in getInt
return int(self.db.get(str(key),0))
AttributeError: get
[EMAIL PROTECTED] python]$
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]