0
Joannを使うとき、私はPython-Joern経由で次のコードでNeo4jデータベースにアクセスしました。このpython-joernを使ってneo4jにアクセス
Traceback (most recent call last):
File "test.py", line 11, in <module>
res = j.runGremlinQuery('getFunctionsByName("main")')
File "/home/binbin/Downloads/python-joern-0.3.1/joern/all.py", line 44, in runGremlinQuery
return self.gremlin.execute(finalQuery)
File "/usr/local/lib/python2.7/dist-packages/py2neo-2.0-py2.7-linux-x86_64.egg/py2neo/ext/gremlin/__init__.py", line 36, in execute
response = self.resources["execute_script"].post({"script": script})
File "/usr/local/lib/python2.7/dist-packages/py2neo-2.0-py2.7-linux-x86_64.egg/py2neo/core.py", line 288, in post
raise_from(self.error_class(message, **content), error)
File "/usr/local/lib/python2.7/dist-packages/py2neo-2.0-py2.7-linux-x86_64.egg/py2neo/util.py", line 215, in raise_from
raise exception
py2neo.error.NoClassDefFoundError: javax/transaction/SystemException
よう
from joern.all import JoernSteps
j = JoernSteps()
j.setGraphDbURL('http://localhost:7474/db/data/')
j.connectToDatabase()
res = j.runGremlinQuery('getFunctionsByName("main")')
for r in res: print r
エラーどのようにそれを修正するには?
あなたはどのバージョンのneo4jを使用していますか? python-joernは少し古く見えます。 neo4jに必要なすべてのプラグインをインストールしましたか?エラーはいくつかのJavaクラスを探しているようです。 –
neo4j version 2.3.7、 gremlin-pluginが正常にインストールされていないのはなぜですか? –
はい、問題が発生する可能性があります。 –