RDFLib/rdflib — Issue #139: Sleepycat Store broken with create=False
Author: gjhiggins
Created: 2012-02-20 08:33:37+00:00
State: open

javier.r...@gmail.com, 2010-10-21T20:28:20.000Z

What steps will reproduce the problem?
1. rm -fr /tmp/asdf
2. python2 -c 'import rdflib; g = rdflib.Graph("Sleepycat"); g.open("/tmp/asdf", create=False)'

What is the expected output? What do you see instead?
Expected: No output.
Result: Error
Traceback (most recent call last):
File "", line 1, in
File "/home/javier/ws/Treeview/service/lib/python2.6/rdflib-3.0.0-py2.6.egg/rdflib/graph.py", line 320, in open
File "/home/javier/ws/Treeview/service/lib/python2.6/rdflib-3.0.0-py2.6.egg/rdflib/plugins/sleepycat.py", line 78, in open
TypeError: Expected DBEnv argument, int found.

What version of the product are you using? On what operating system?
3.0.0, Linux.

Please provide any additional information below.
Python 2.7.
The problem is that the return value of _init_db_environment is -1 and is used as another type of object.

Comment 1 by javier.r...@gmail.com
Tentative fix.

Comment 2 by gromgull
This issue was closed by revision r1906.

Comment 3 by gromgull
This issue was closed by revision 31ac3588baa3.