gjhiggins/rdflib — Issue #52: interoperability issue in plugin.py
Author: gjhiggins
Created: 2011-10-19 01:07:00+00:00
State: open

Originally filed by pierre.a...@gmail.com on 2009-03-24T11:39:06

What steps will reproduce the problem?
1. run jython (v2.5)
2. type:
import rdflib
rdflib.ConjunctiveGraph()

What is the expected output? What do you see instead?
I see an exception, the expected output is no exception ;)

What version of the product are you using? On what operating system?
2.4.0 on Ubuntu Linux (Intrepid)

Please provide any additional information below.
I suggest replacing, in plugin.py, function get()
module = __import__(module_path, globals(), locals(), True)
with
module = __import__(module_path, globals(), locals(), [""])

which works both in CPython and Jython
(indeed, __import__ expects a list as its 4 argument)