TypeError: argument of type 'dbm.dbm' is not iterable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
svn2bzr |
Fix Committed
|
Medium
|
Martin Spacek |
Bug Description
While attempting to migrate a 2GB svn dump file into a bzr repository, I received the following:
(bdr@Fortinbras
Revision 0 read
debug: Tree has 0 entries
Revision 1 read
debug: Tree has 615 entries
...
Revision 161 read
debug: Tree has 2691 entries
Revision 162 read
debug: Tree has 2691 entries
Traceback (most recent call last):
File "./svn2bzr/
main()
File "./svn2bzr/
opts.prefix, opts.filter)
File "./svn2bzr/
dump = Dump(dump_file)
File "./svn2bzr/
self._read()
File "./svn2bzr/
building=True)
File "./svn2bzr/
copy_tree = self._build_
File "./svn2bzr/
if str(revno) in self._tree_cache:
TypeError: argument of type 'dbm.dbm' is not iterable
Exception exceptions.OSError: (2, 'No such file or directory', '/var/folders/
I've tried this with the following branches of svn2bzr, all with the same results:
http://
http://
http://
(bdr@Fortinbras
Bazaar (bzr) 1.5
Python interpreter: /System/
Python standard library: /System/
bzrlib: /Library/
Bazaar configuration: /Users/bdr/.bazaar
Bazaar log file: /Users/bdr/.bzr.log
Much like bug #187891, I'm afraid I can't really post the dump publicly, but also am more than happy to do work here to assist with diagnosis, and could possibly privately give access to a partial dump file if necessary.
I'm a total Python novice, but some poking and Googling makes me think that this might be helpful information:
>>> import dbhash Library/ Frameworks/ Python. framework/ Versions/ 2.5/lib/ python2. 5/dbhash. py", line 5, in <module> Library/ Frameworks/ Python. framework/ Versions/ 2.5/lib/ python2. 5/bsddb/ __init_ _.py", line 51, in <module>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/
import bsddb
File "/System/
import _bsddb
ImportError: No module named _bsddb
>>> import gdbm
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gdbm
>>> import dbm
>>>
Are one of the more advanced dbm modules required for svn2bzr to function properly?