我按照下列指示行事:
http://joern.readthedocs.io/en/latest/installation.html
安装joern,然后进行以下测试:
http://joern.readthedocs.io/en/latest/access.html
并获得此错误(使用ipython):
import joern.all
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-903145a12480> in <module>()
----> 1 import joern.all
/home/xxxx/Downloads/python-joern-0.3.1/joern/all.py in <module>()
1 from py2neo import Graph
----> 2 from py2neo.ext.gremlin import Gremlin
3 import os
4
5 DEFAULT_GRAPHDB_URL = "http://localhost:7474/db/data/"
ImportError: No module named gremlin有人能教我怎么安装"Gremlin“吗?
我做了以下工作,但至今仍不起作用:
## wget -O neo4j-gremlin.zip http://mlsec.org/joern/lib/neo4j-gremlin-plugin-2.1-SNAPSHOT-server-plugin.zip
sudo mkdir -p /usr/share/neo4j/plugins/gremlin-plugin
sudo unzip neo4j-gremlin.zip -d /usr/share/neo4j/plugins/gremlin-plugin"0.1.tar.gz“也安装了py2neo-gremlin-0.1。
“”也不起作用。
现在我已经没有主意了。
发布于 2017-04-19 15:50:04
您很可能安装了与Joern不兼容的py2neo版本。如果您使用pip安装py2neo,您将得到v3.x,但Joern目前似乎只支持v2.0。运行以下命令以确认:
python -c "import py2neo; print py2neo.__version__"
如果上面没有打印2.0,则通过运行pip uninstall py2neo删除py2neo,然后通过运行pip install py2neo==2.0安装v2.0。然后,通过运行python -c "from py2neo.ext.gremlin import Gremlin"重新测试-它应该完成没有错误。
https://stackoverflow.com/questions/42157270
复制相似问题