29698

ModuleNotFoundError: No module named 'neo4j.addressing' and ModuleNotFoundError: No module

Question:

I am getting this error. just from trying to run Graph() method.

>>> import py2neo >>> graph = py2neo.Graph() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\database.py", line 305, in __new__ database = Database(uri, **settings) File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\database.py", line 85, in __new__ connection_data = get_connection_data(uri, **settings) File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\internal\addressing.py", line 118, in get_connection_data data["user_agent"] = http_user_agent() if data["scheme"] in ["http", "https"] else bolt_user_agent() File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\meta.py", line 32, in bolt_user_agent import neo4j ModuleNotFoundError: No module named 'neo4j'

This error comes without neo4j-driver

>>> import py2neo >>> graph = py2neo.Graph() Traceback (most recent call last): File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\database.py", line 88, in __new__ inst = cls._instances[key] KeyError: 'c562f33e637233f1922f80fc5652b53a' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\database.py", line 305, in __new__ database = Database(uri, **settings) File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\database.py", line 92, in __new__ from py2neo.internal.http import HTTPDriver, HTTPSDriver File "E:\Chibanggri\flask and neo4j\venv\lib\site-packages\py2neo\internal\http.py", line 26, in <module> from neo4j.addressing import SocketAddress ModuleNotFoundError: No module named 'neo4j.addressing'

This one with neo4j-driver Here is the pip freeze

astroid==2.0.4 bcrypt==3.1.4 cffi==1.11.5 Click==7.0 colorama==0.4.0 Flask==1.0.2 isort==4.3.4 ItsDangerous==1.0.0 Jinja2==2.10 lazy-object-proxy==1.3.1 MarkupSafe==1.0 mccabe==0.6.1 neobolt==1.7.0 neotime==1.7.1 passlib==1.7.1 py2neo==4.1.0 pycparser==2.19 pylint==2.1.1 pytz==2018.6 six==1.11.0 Werkzeug==0.14.1 wrapt==1.10.11

This is all in a virtual environment (venv) I set up for a flask tutorial. Problem does not seem to be because of flask, most likely with neo4j itself. I have no idea what to do.

Answer1:

pip install neo4j-driver==1.6.2<br />

This should resolve the problem. There seems to be a version specific issue with the neo4j-driver installed alongside py2neo==4.1.0

Recommend

  • How can I resolve “adb server is out of date” error
  • Admob ad Error code : 0. Everithyng is updated and carefully programmed set it's not showing ad
  • Simple PHP mongoDB Username and Password Check for site
  • Select * sql query vs Select specific columns sql query [duplicate]
  • make meteor restful api/web-service
  • Android: Connect buttons with lines
  • How to load registry hive for all users in a loop
  • How multiple executors are managed on the worker nodes with a Spark standalone cluster?
  • Android NDK crash when reading/writing files
  • gtk TextView widget doesn't update during function
  • SQL Developer 4.0.2 install on Windows 7 64 bit
  • WSO2 ESB - Data Services Server Feature - How to use Data Sources to swap data source on fly
  • how do you uninstall an xampp installation that refuses to uninstall?
  • How to extract details from the xml files using java?
  • Cannot connect to X server using docker on OS X - Part II
  • How do I use Promise.all() with chrome.storage()?
  • How to get full url in Angular?
  • What are recommended Core Graphics techniques for drawing very custom UITableViewCells
  • PromptDialog error occurs in Messenger bot
  • node.js eventEmitter : Listen for events across files
  • Is there a function to calculate the difference between two times and display a relative result?
  • BREAK ON instruction in MySQL queries?
  • Spongycastle is missing many algorithms when loaded on android
  • Questions related to Garbage Collector and finalize() method
  • How to close a WebView with double-click?
  • Php artisan optimize is failing on production server
  • UIScrollView does not restore properly
  • Why do you need 2 Javascript files for cross-platform Cordova plugin?
  • Annotate objects in a queryset with next and previous object ids
  • How to split wav file into two or more parts using c#
  • Content-Type alternative in MQTT
  • Unable to create Access token grant type in wso2 API manager store to test API
  • How to clear a browser cache in Protractor
  • php “page caching” solution suggestions for CMS Applications
  • How to encrypt Connectionstring written in web.config from codebehind?
  • How to call different template for different category archive page in woocommerce
  • Call Microservice from another Microservice within Docker
  • Jersey serializes character value to ASCII equivalent numeric string
  • CAS 4 - Not able to retrieve the LDAP groups after successful authentication
  • What does the “id” field in an Android “Google Play Music” broadcast intent correspond to?