Skip to content

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

@sawantsaurabh

Description

@sawantsaurabh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions