I have a jython program that runs fine on windows but when I migrate it to linux I get
1st arg can't be coerced to org.python.core.PyObject[]
I am using the jyson 1.0.2 library.
Here is the code:
import urllib
import java.sql as sql
import java.lang as lang
import com.xhaus.jyson as Jyson
import sys
source urls, either single or full pull
url="http://dev-dsafdasfdsfsdfsdfsda"
open connection to url and read data and use json function to convert it to python object
json=Jyson.JysonCodec()
json_url = urllib.urlopen(url)
jsondata = json.loads(json_url.read(),{})
I have a jython program that runs fine on windows but when I migrate it to linux I get
1st arg can't be coerced to org.python.core.PyObject[]
I am using the jyson 1.0.2 library.
Here is the code:
import urllib
import java.sql as sql
import java.lang as lang
import com.xhaus.jyson as Jyson
import sys
source urls, either single or full pull
url="http://dev-dsafdasfdsfsdfsdfsda"
open connection to url and read data and use json function to convert it to python object
json=Jyson.JysonCodec()
json_url = urllib.urlopen(url)
jsondata = json.loads(json_url.read(),{})