pyorient
pyorient copied to clipboard
[ exception_message.decode( 'utf8' ) ] PyOrientCommandException: -
After connecting and creating session id sucessfully. I tried to insert data into database but got following error after running inserting record: " [ exception_message.decode( 'utf8' ) ] PyOrientCommandException: - "
Python Version: 3.7.0 pyorient : 1.5.5
Please find my below code. `import pyorient client = pyorient.OrientDB("localhost", 2424) client.set_session_token(True) session_id = client.connect( "root", "orientdb")
client.db_create('yourDB', pyorient.DB_TYPE_GRAPH,pyorient.STORAGE_TYPE_PLOCAL) client.db_open('yourDB', 'root', 'orientdb', pyorient.DB_TYPE_GRAPH)
cluster_id = client.command( "create class my_class extends V" )
#create property cluster_id = client.command( "create property my_class.id Integer" ) cluster_id = client.command( "create property my_class.name String" )
#insert record client.command("insert into my_class ( 'id','name' ) values( 1201, 'satish')") `
I have the same issue. Any idea on how to pass over it / fix it ?
I was able to patch the library to work with OrientDB 3.1+ and updated the README to give descriptions of how to connect to your database now. You can find my patched version here: https://github.com/brucetony/pyorient