2016-05-23 10 views
0
Arbeits

Ich bin mit dem folgenden Befehl ein:Mongo Stecker mit Neo4j nicht

mongo-connector -m localhost:27017 -t http://localhost:7474/db/data -d neo4j_doc_manager 

Aber folgende Fehler bekommen:

No handlers could be found for logger "mongo_connector.util"<br/> 
Traceback (most recent call last):<br/> 
    File "/usr/local/bin/mongo-connector", line 11, in <module> 
    sys.exit(main())<br/> 
    File "/usr/local/lib/python2.7/site-packages/mongo_connector/util.py", line 85, in wrapped<br/> 
    func(*args, **kwargs) 
    File "/usr/local/lib/python2.7/site-<br/>packages/mongo_connector/connector.py", line 1041, in main 
    conf.parse_args()<br/> 
    File "/usr/local/lib/python2.7/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/local/lib/python2.7/site-packages/mongo_connector/connector.py", line 824, in apply_doc_managers 
    module = import_dm_by_name(dm['docManager'])<br/> 
    File "/usr/local/lib/python2.7/site-packages/mongo_connector/connector.py", line 814, in import_dm_by_name 
    "vailable doc managers." % full_name) 
mongo_connector.errors.InvalidConfiguration: Could not import mongo_connector.doc_managers.neo4j_doc_manager. It could be that this doc manager has been moved out of this project and is maintained elsewhere. Make sure that you have the doc manager installed alongside mongo-connector. Check the README for a list of available doc managers. 

HINWEIS: Ich verwende Neo4j 3.0, os: macosx , python: 2.7 **

+0

Siehe Ich weiß, das ist nicht der Punkt die Frage, aber wenn Sie Mongo mit Neo4j verwenden, würde ich Ihnen wirklich empfehlen, zu überprüfen: http://orientdb.com/orientdb/. Es ist das Beste aus zwei Welten in einer einzigen und benutzerfreundlichen Datenbank. – Leonardo

Antwort

2

Dies scheint ein Fehler zu sein, der dadurch verursacht wird, dass die py2neo-Abhängigkeit nicht an eine bestimmte Version angehängt werden kann. Dieses Projekt wurde mit py2neo 2.0.7 geschrieben, konnte aber diese Version nicht fixieren, da py2neo 3.0 jetzt in einigen wenigen Dingen zum Einsatz kommt.

Wir bald ein Update für 3.0 vorantreiben wird, in der Zwischenzeit Sie py2neo durch eine Deinstallation und Installation von Version 2.0.7 dieses Problem umgehen können:

[email protected] ~/n/mongo_demo> pip uninstall py2neo 
Uninstalling py2neo-3 
... 
[email protected] ~/n/mongo_demo> pip install py2neo==2.0.7 
Collecting py2neo==2.0.7 
    Downloading py2neo-2.0.7.tar.gz (251kB) 
    100% |████████████████████████████████| 256kB 2.6MB/s 
Installing collected packages: py2neo 
    Running setup.py install for py2neo ... done 
Successfully installed py2neo-2.0.7 
[email protected] ~/n/mongo_demo> 
mongo-connector -m localhost:27017 -t http://localhost:7474/db/data -d neo4j_doc_manager 
Logging to mongo-connector.log. 

https://github.com/neo4j-contrib/neo4j_doc_manager/issues/60