0
我想在Python中運行一些代碼,代碼需要Weka庫並在Python中運行Weka我已經安裝了Python-Weka_Wrapper,Javabridge和Weka,它們都處於最新穩定版本,Python是Python 2.7。我得到的JavaBridge的異常,堆棧跟蹤如下:Weka中的問題和Python中的JavaBridge
File "/usr/local/lib/python2.7/dist-packages/weka/core/converters.py", line 78, in load_file
return Instances(javabridge.call(self.jobject, "getDataSet", "()Lweka/core/Instances;"))
File "/usr/local/lib/python2.7/dist-packages/weka/core/dataset.py", line 48, in __init__
self.__set_instance = javabridge.make_call(self.jobject, "set", "(ILweka/core/Instance;)Lweka/core/Instance;")
File "/usr/local/lib/python2.7/dist-packages/javabridge/jutil.py", line 789, in make_call
raise JavaException(jexception)
javabridge.jutil.JavaException: set