找不到 gremlin 模块
gremlin module not found
我按照以下说明操作:
http://joern.readthedocs.io/en/latest/installation.html
安装 joern,然后进行以下测试 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。
而"pip install Gremlin"也不行。
现在我运行没主意了。
您很可能安装了与 Joern 不兼容的 py2neo 版本。如果你使用 pip 安装 py2neo,你会得到 v3.x 但 Joern 目前似乎只支持 v2.0。 运行以下命令确认:
python -c "import py2neo; print py2neo.__version__"
如果上面没有打印2.0
,通过运行删除py2neo pip uninstall py2neo
然后通过[=安装v2.0 25=] pip install py2neo==2.0
。然后通过 运行 python -c "from py2neo.ext.gremlin import Gremlin"
重新测试 - 它应该没有错误地完成。
我按照以下说明操作:
http://joern.readthedocs.io/en/latest/installation.html
安装 joern,然后进行以下测试 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。
而"pip install Gremlin"也不行。
现在我运行没主意了。
您很可能安装了与 Joern 不兼容的 py2neo 版本。如果你使用 pip 安装 py2neo,你会得到 v3.x 但 Joern 目前似乎只支持 v2.0。 运行以下命令确认:
python -c "import py2neo; print py2neo.__version__"
如果上面没有打印2.0
,通过运行删除py2neo pip uninstall py2neo
然后通过[=安装v2.0 25=] pip install py2neo==2.0
。然后通过 运行 python -c "from py2neo.ext.gremlin import Gremlin"
重新测试 - 它应该没有错误地完成。