pyorient icon indicating copy to clipboard operation
pyorient copied to clipboard

[ exception_message.decode( 'utf8' ) ] PyOrientCommandException: -

Open sawantsaurabh opened this issue 4 years ago • 2 comments

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')") `

sawantsaurabh avatar Jul 21 '20 14:07 sawantsaurabh

I have the same issue. Any idea on how to pass over it / fix it ?

Amioplk avatar Jan 15 '21 21:01 Amioplk

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

brucetony avatar Aug 23 '21 12:08 brucetony