Hi all,

on my laptop, I don't have the bsddb module installed for python2.6, and
so I get this warning,

--
WARNING dbfile.open_index: Falling back to hash index: unable to import bsddb
--

which is understandable, but then I get these errors:

======================================================================
ERROR: test_headerfile_create (seqdb_test.PrefixUnionDict_Creation_Test)
----------------------------------------------------------------------
...
  File "/Users/t/dev/pygr/pygr/dbfile.py", line 104, in __iter__
      return iter(self.dict)
  TypeError: 'dbm.dbm' object is not iterable

---

This appears to be this problem,

        http://bugs.python.org/issue5736

caused in this case by anydbm returning a dbm.dbm object, which is not
iterable.

This is one of those errors that could cause serious grief to n00bies ;).

At least three possible solutions:

 - require bsddb

 - put in code to "test" to see if what anydbm returns can give an
   iterator, and if not, give a very clear error message;

 - try to write our own wrapper code to "fix" the problem.

I vote for #2 or #1.  Note that bsddb is deprecated in 2.7 and going
away (gone?) in 3.x, but we can deal with that... later.  I'd like to
get in something for 8.0 final if possible.

Opinions?

cheers,
--titus
-- 
C. Titus Brown, [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to