-
Notifications
You must be signed in to change notification settings - Fork 38
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
Not working with orientdb 3.0 #27
Comments
Same here. Not sure if this project is still active? It seems to have been a while since last commit. |
i just updated the constants.py to support the lastest protocol 37 and its working, but not sure if it has any implications. Here is the working pyorient module for orientdb3.0.0 https://github.com/rrmerugu/pyorient/ you can install with |
Should be tested, some internal changes could be happened. This requires manual test and debug. |
You can try, but keep in mind that this is not production ready. |
@Ostico is there any roadmap to support 3.0.0 soon ? |
Same problem here. |
Starting with OrientDB 3.0.3, it adds a check to protocol 37 during the connect phase to see if a handshake is used. If a client specifies it supports protocol 37 but does not perform an initial handshake, it will fail. The simplest solution is to still use protocol 36 (OrientDB will adjust accordingly) until the handshake, etc. can be implemented and to comment out this in orient.py:
@Ostico could we comment that out, test it, and publish it to pip? |
I went ahead and commented the protocol check out so that, at least, it will communicate with OrientDB 3.0.x now. Your mileage may vary... |
Tested and checked with PHPOrient, this solution works, i will update pyOrient also as soon as possible |
@Ostico when can you updata it? I have the same problem. |
Until it's pushed to pypi, you can install the module via: |
I forked a version and patched: https://github.com/OpenConjecture/pyorient Install (be sure to use --upgrade flag to override local cache):
Connect and test.
|
I am new to orientdb and I have been a little puzzled by all the forks and the lack of activity in pyorient, so maybe my comment will sound a little bit naive. Sorry. I can tell that the fork https://github.com/OpenConjecture/pyorient appear to work so far. It appears that, at least in 3.1.0, the binary protocol for error messages changed, causing pyorient to fail interpreting the binary output. I generally get an output of the form
Do you have a similar experience sometimes ? |
Hello @Konubinix ! I have the same experience. Do you think it has anything to do with OrientDB 3.1+ version ? (I am currently using 3.1.6 version) |
Sorry, I have given up using orientdb, as it is way to resource greedy to run on my Raspberry Pi 3B+. So I won't be able to answer you. |
I can't connect to my orientdb (version 3.0) database.
Traceback:
Traceback (most recent call last):
File "", line 1, in
File "/var/www/projects/pydev/bonham/venv/lib/python3.6/site-packages/pyorient/orient.py", line 411, in db_open
info, clusters, nodes = self.get_message("DbOpenMessage")
File "/var/www/projects/pydev/bonham/venv/lib/python3.6/site-packages/pyorient/orient.py", line 540, in get_message
message_instance = _Message(self._connection)
File "/var/www/projects/pydev/bonham/venv/lib/python3.6/site-packages/pyorient/messages/database.py", line 47, in init
super(DbOpenMessage, self).init(_orient_socket)
File "/var/www/projects/pydev/bonham/venv/lib/python3.6/site-packages/pyorient/messages/base.py", line 24, in init
sock.get_connection()
File "/var/www/projects/pydev/bonham/venv/lib/python3.6/site-packages/pyorient/orient.py", line 78, in get_connection
self.connect()
File "/var/www/projects/pydev/bonham/venv/lib/python3.6/site-packages/pyorient/orient.py", line 103, in connect
" is not supported yet by this client.", [])
pyorient.exceptions.PyOrientWrongProtocolVersionException: Protocol version 37 is not supported yet by this client.
The text was updated successfully, but these errors were encountered: