没有找到记录器“mongo_connector.util”的处理程序

时间:2016-04-14 09:00:42

标签: mongodb neo4j py2neo

当我尝试使用neo4j doc manager运行mongo-connector时,我总是得到以下错误。我也尝试使用https://github.com/mongodb-labs/mongo-connector/blob/master/config.json

中的配置文件

问题出在哪里?

mongo-connector -m localhost:27017 -t http://localhost:7474/db/data -d neo4j_doc_manager
No handlers could be found for logger "mongo_connector.util"

Traceback (most recent call last):
  File "/usr/bin/mongo-connector", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/mongo_connector/util.py", line 85, in wrapped
    func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/mongo_connector/connector.py", line 1041, in main
    conf.parse_args()
  File "/usr/lib/python2.6/site-packages/mongo_connector/config.py", line 118, in parse_args
    option, dict((k, values.get(k)) for k in option.cli_names))
  File "/usr/lib/python2.6/site-packages/mongo_connector/connector.py", line 824, in apply_doc_managers
    module = import_dm_by_name(dm['docManager'])
  File "/usr/lib/python2.6/site-packages/mongo_connector/connector.py", line 803, in import_dm_by_name
    module = __import__(full_name, fromlist=(name,))
  File "/usr/lib/python2.6/site-packages/mongo_connector/doc_managers/neo4j_doc_manager.py", line 16, in <module>
    from py2neo import Graph, authenticate
  File "/usr/lib/python2.6/site-packages/py2neo/__init__.py", line 28, in <module>
    from py2neo.database import *
  File "/usr/lib/python2.6/site-packages/py2neo/database/__init__.py", line 65
    parameters = {k: v for k, v in parameters.items() if k not in presub_parameters}

1 个答案:

答案 0 :(得分:0)

看起来您正在使用Python 2.6。我不确定该项目是否正式支持该版本。我建议升级到Python 2.7或最好是3.4并尝试重现。