-
Notifications
You must be signed in to change notification settings - Fork 125
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
pyorient not working with orientdb 3.0.0 #270
Comments
can you share your code please? |
client = pyorient.OrientDB('localhost', 2424) pyorient.exceptions.PyOrientWrongProtocolVersionException: Protocol version 37 is not supported yet by this client. pyorient 1.5.5 |
Same problem here. |
Same issue. |
+1 |
i am using 3.0.2 and pyorient 1.5.5 |
Same issue using the current Docker image. I just wanted to try OrientDB and am not sure what a patch would encompass. No matter how complicated that may be, the Repository README states:
As a first measure: Could someone adjust that line, pointing to the last working OrientDB (2.x) version? For Docker it works with |
@dersmon good point, since at moment i have not enough time to advance the version at least until august i think, this is the best option. |
I changed |
Hi @softwareCobbler , not tried, not tested and I don't know which issues there could be. Could be useful to know which problems you find as a good starting point to short cut the driver improvement. |
@mogui: Is there any plan to update pyorient to support version 3.x reliably? |
I have looked into this a bit. This client throws an error if the OrientDB server is of a more recent version than the client. The official Java client has slightly different behaviour, it just raises a warning that you will not be able to use the full features of the newer version. It looks like both the python and Java clients attempt to connect to the server using the clients preferred protocol version, and expect the server to handle it. I have tweaked the connection version checking in the python client to mirror that in the java client, and I'm going to give it a shot and see how it goes. (So far I have tried connecting to a V3.0.5 OrientDB and querying a graph successfully). Note: links are to the relevant sections of code. |
@softwareCobbler I tried your approach and got the following
|
HI Tariq,
We’ve been very busy with our everyday jobs, hopefully they will calm down soon, and we’re look into that soon,
We’ve got some ideas on how to maintain compatibility, hang on :)
… On 20 Sep 2018, at 02:54, Tariq Hassan ***@***.***> wrote:
Hi @Ostico
Sorry to ping you directly, but any idea about the status of this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi Mogui! Yours sincerely |
Hi Mogui, Do you guys have any estimations about fixing it? Thanks!! |
Thanks for the reply. I ended up deleting my comment because I found that commenting out the error message (or invoking @klkludde @montequie: What I suggested above is not particularly elegant, but it should work as a stopgap measure. |
Can you repost your suggestion? can't find it here |
Hi @montequie See here. |
@TariqAHassan Thanks a lot! |
+1 |
+1 Let me add my encouragement to update to 3.x as well.. :) I'm a new user to OrientDB. I have a project that I'm working on and I'm nervous to build and then have to migrate to 3.x later on. |
Is there any fix for pyorient with Orientdb 3.0 |
+1 |
Is there any plan to fix this? |
+1 |
If someone needs to use odb3 with python, just use master branch instead of the last release. If you just start a new project, I recommend using a more up-to-date dbsm (redisgraph or other). |
I'm sorry, but... what the hell is going on here? Try out orientdb -> use pyorient -> latest, and right off the bat I run into a non-starter because of a constant that hasn't been updated in almost 2 years now? (Along with other changes that haven't been implemented along with that constant bump) |
The issue is back. You can fix this by overriding the connect method in OrientSocket:
then
|
OrientTechnologies removed (in their fork) the if statement causing the error :) Orient 3+ documentation page links their own fork as the repo to be used (just passing on the message) Probably because this current bug has not been fixed. Check this link under Developers/Python (change of repo for 3+) http://orientdb.com/docs/3.0.x/ Tested on: If you want to try it below, it works, i checked. Just change your python package location from pypi package of this repo to git-based package of OrientTechnologies repo. In your requirements.txt find line and change to
then
Now the connection as plain as below is working without the error. And be sure to check the first link with the funny fix to have a laugh.
|
Hi @rrmerugu. Install pyorient from source as given here PyOrient Installation after this you no longer will face this issue. |
Or use pyorient=1.5.1 with this version this work fine. |
@styk-tv's solution fixes the connection problem (thank you for that), but still there are several more issues that's the driver itself. You need to now get a token and then set it, I did the following and got around that,
But, after that you will still get another exception if you do a Query.
Granted these are different bugs, I need to warn that you will run into more issues even if you get around this specific issue on this bug. |
Getting same issue in 2024. No solutions, huh? |
When i try to establish a connection to the db from pyorient, the below error is showing up. im using pyorient==1.5.5, is it possible its not compatible with orientdb 3.0.0. Any plans to support pyorient for orientdb 3.0.0 version soon ?
PS: This is the version of the orientdb i'm using https://orientdb.com/download.php?file=orientdb-community-gremlin-3.0.0.tar.gz
The text was updated successfully, but these errors were encountered: