[ 
https://issues.apache.org/jira/browse/TINKERPOP-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931290#comment-16931290
 ] 

stephen mallette commented on TINKERPOP-2293:
---------------------------------------------

> as the sample code which is not the complete needed python code. It also does 
> not explictly mention that you need a server and that this is only a 
> restricted language variant and not a full implementation.

yes, the pypi page is insufficient. As i said before it should mention Gremlin 
Server and, sure, we can include the example for creation of "g" along with 
some additional links to the Reference Documentation that I provided to you in 
my earlier comment. 

> In my case this leads to a non-working server where you get two 
> error-messages:
> See http://wiki.bitplan.com/index.php/Gremlin_python#Installlation_automation 
> for making the bug reproducible e.g. on Ubuntu 18.04 LTS

I won't go into further detail here on the problem you're having as we're 
already having that conversation in StackOverflow. Let's keep that problem 
discussion over there and retain this JIRA issue for the documentation 
improvement. If our discussion on SO turns up a problem with the Gremlin Server 
packaging or gremlinpython we can determine if a new JIRA is necessary 
specifically for that. Thanks.



> Gremlin-Python example not working
> ----------------------------------
>
>                 Key: TINKERPOP-2293
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2293
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 3.3.8
>            Reporter: Wolfgang Fahl
>            Priority: Major
>
> see 
> [https://stackoverflow.com/questions/57936915/how-do-i-get-gremlin-python-with-gremlin-server-3-4-3-to-work]
>  
> Steps to reproduce:
> So i wanted to tryout gremlin-python. I found 
> [https://pypi.org/project/gremlinpython/] and happily added
>  
> {{gremlinpython}}
> to my requirements.txt
>  
> {{sudo -H pip install -r requirements.txt}}
> ran successfully- great. Let's find some python code to play with .
> [https://gist.githubusercontent.com/okram/f193d5616563a69ad5714a42c504276f/raw/b8075410e400e18f18360015945f3760d99d044a/gremlin-python-play.py]
> has it.
> Oh - I need a server ...
> Let's download it
> [http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist/tinkerpop/3.4.3/apache-tinkerpop-gremlin-server-3.4.3-bin.zip]
> unzip it and create a starter file for it as outlined in the example above:
>  
> {{gspath=$HOME/Downloads/apache-tinkerpop-gremlin-server-3.4.3#$gspath/bin/gremlin-server.sh
>  install org.apache.tinkerpop gremlin-python 
> 3.4.3$gspath/bin/gremlin-server.sh 
> $gspath/conf/gremlin-server-modern-py.yaml}}
> It doesn't work - get a 599 timeout from tornado.
> Look at:
> [Why can't I connect to 
> Gremlin-Server?|https://stackoverflow.com/questions/41783800/why-cant-i-connect-to-gremlin-server]
> Try hints e.g. using 0.0.0.0 as host
> Check the startup.
> Oops - there is an error:
> ServerGremlinExecutor - Could not initialize gremlin-python 
> GremlinScriptEngine as init script could not be evaluated
> java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: 
> gremlin-python is not an available GremlinScriptEngine
>  at 
> java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:375)
>  
> Same for gremlin-jython.
>  
> sudo port install jython 
>  
> does not change the situation.
>  
> At least there are some things that would improve the situation:
>  
>  * add a complete example for python3 including requirements.txt, python code 
> install script and description how to configure and start server
> -  fix the gremlin-server-modern-py.yaml
> the "-i" optione mentioned in this file does not seem to exist any more.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to