Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sawantsaurabh opened this issue Jul 21, 2020 · 2 comments
Open

Comments

@sawantsaurabh
Copy link

sawantsaurabh commented Jul 21, 2020

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 sawantsaurabh changed the title PyOrientConnectionException: Socket Error: [WinError 10056] [ exception_message.decode( 'utf8' ) ] PyOrientCommandException: - Jul 21, 2020
@Amioplk
Copy link

Amioplk commented Jan 15, 2021

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

@brucetony
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants