Hi All,
I have a jython "library" called jyson (
http://jyson.xhaus.com/) that
I have converted into an OSGi plugin and am trying to get jython to
instantiate objects within GoGoEgo.
So what I'm trying to do is this:
from
java.net import URL
from
java.io import InputStreamReader
from
java.io import BufferedReader
from com.xhaus.jyson import JysonCodec as json
url = URL("
http://feeds.delicious.com/v2/json/adhoc?count=10")
reader = BufferedReader(InputStreamReader(url.openStream()))
try:
str = reader.readLine()
while str != None:
bookmarks += str
str = reader.readLine()
document.write(json.loads(bookmarks))
finally:
reader.close()
But it fails with:
Exception running script: Traceback (innermost last):
File "<unknown>", line 5, in ?
ImportError: no module named xhaus
Help, please!
Cheers,
Trev