vesoft-inc / nebula-python

Client API of Nebula Graph in Python
193 stars 77 forks source link

Nebula SERVICE CONNECTION BAD #366

Open nagateja1929 opened 2 weeks ago

nagateja1929 commented 2 weeks ago

I have started nebula services using nebula-console and got this below. **Notice: Defaulting to localhost (127.0.0.1) with port 9669 using credentials (username: root, password: nebula).

Welcome!**

After I have created a space in the console itself and try to run this code in colab.

**%pip install nebula3-python ipython-ngql

import os

os.environ['NEBULA_USER'] = 'root' os.environ['NEBULA_PASSWORD'] = 'nebula' os.environ['NEBULA_ADDRESS'] = '172.18.0.12:9669'

space_name="guardians" edge_types,rel_prop_names=['relationship'],["relationship"] tags = ["entity"]

graph_store = NebulaGraphStore( space_name=space_name, edge_types=edge_types, rel_prop_names=rel_prop_names, tags=tags, )

storage_context = StorageContext.from_defaults(graph_store=graph_store)**. Ans after I am getting an error at NebulaGraphStore that is

The services status exception: [services: ('172.18.0.12', 9669), status: BAD]

Why? Please help me.

wey-gu commented 1 week ago

@nagateja1929 welcome to the NebulaGraph community, is the nebula-console with the same network env of your jupyter/ipython? if yes, please use 127.0.0.1:9669 as your Nebula Address.