getting info on connected databases
Hello, I connected to the db. then I try again:
info = client.db_open( db_name, "user", "pwd" )
the console hangs and have to keyboard interrupt.
`
^CTraceback (most recent call last):
File "
`
it looks it works only a first time. so how to get information not only on the classes but also on the commands? Which property of the returned object should be accessed?
How did you instantiate pyorient.OrientDB? Are you able to connect to the database successfully using the OrientDB console?
yes, I am able to connect to the console.
When you connect through the console, are you accessing the database as a remote or plocal? I.e., are you connecting using connect remote:localhost/db_name user pwd?
I can do it as a remote. please note I recreated the db with .STORAGE_TYPE_PLOCAL (before when I had the problem it was on memory) .
The db storage type shouldn't matter from the perspective of pyorient because it is accessing everything over a network socket even if you are using it on system running the OrientDB server.
Perhaps there are some firewall rules set up on your system that interfere with accessing port 2424 locally? I can't reproduce this problem on my Linux system using the latest code from GitHub master.
mm no, no firewall here. I destroyed and recreated in PLOCAL - (I am not saying that MEMORY was the cause, but now can connect and get info).
Not sure what went wrong; I was able to connect to a memory db served by OrientDB 2.1.0 using pyorient.
Hi @gg4u, I couldn't replicate this problem, are you running something like this:
import pyorient
db_name = "GratefulDeadConcerts"
client = pyorient.OrientDB("localhost", 2424)
cluster_info = client.db_open( db_name, "admin", "admin" )
print(cluster_info)
cluster_info2 = client.db_open( db_name, "admin", "admin" )
print(cluster_info2)
cause it doesn't hangs up at all, anyway your need make sense there should be a way to get cluster information from the Orient object, so you don't have to call db_open twice, it doesn't make sense