gjhiggins/rdflib — Issue #148: Sleepycat Store broken with create=False
Author: gjhiggins
Created: 2011-10-19 01:30:53+00:00
State: open

Originally filed by javier.r...@gmail.com on 2010-10-21T20:28:20

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.