[jira] [Closed] (TINKERPOP-2303) GremlinDsl generate addV instead of addE

2019-10-03 Thread Stephen Mallette (Jira)


 [ 
https://issues.apache.org/jira/browse/TINKERPOP-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2303.
---
Fix Version/s: 3.4.4
   3.3.9
   3.5.0
 Assignee: Stephen Mallette
   Resolution: Fixed

Thanks for submitting your PR - it has been merged. Nice.

> GremlinDsl generate addV instead of addE
> 
>
> Key: TINKERPOP-2303
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2303
> Project: TinkerPop
>  Issue Type: Bug
>  Components: process
>Affects Versions: 3.4.3
>Reporter: ali ammar
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> in GremlinDslProcessor class , when generating traversalSource 
> at generateTraversalSource method addV should be replaced by addE 
> {quote} 
> traversalSourceClass.addMethod(MethodSpec.methodBuilder("{color:#00875a}addE{color}")
>  .addModifiers(Modifier.PUBLIC)
>  .addAnnotation(Override.class)
>  .addParameter(String.class, "label")
>  .addStatement("$N clone = this.clone()", ctx.traversalSourceClazz)
>  .addStatement("clone.getBytecode().addStep($T.{color:#FF}*addV*{color}, 
> label)", GraphTraversal.Symbols.class)
>  .addStatement("$N traversal = new $N(clone)", ctx.defaultTraversalClazz, 
> ctx.defaultTraversalClazz)
>  .addStatement("return ($T) traversal.asAdmin().addStep(new $T(traversal, 
> label))", ctx.traversalClassName, AddEdgeStartStep.class)
>  .returns(ParameterizedTypeName.get(ctx.traversalClassName, 
> ClassName.get(Edge.class), ClassName.get(Edge.class)))
>  .build());
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2303) GremlinDsl generate addV instead of addE

2019-10-03 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot commented on TINKERPOP-2303:
---

spmallette commented on pull request #1207: TINKERPOP-2303 fix GremlinDsl 
generate addV instead of addE
URL: https://github.com/apache/tinkerpop/pull/1207
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> GremlinDsl generate addV instead of addE
> 
>
> Key: TINKERPOP-2303
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2303
> Project: TinkerPop
>  Issue Type: Bug
>  Components: process
>Affects Versions: 3.4.3
>Reporter: ali ammar
>Priority: Minor
>
> in GremlinDslProcessor class , when generating traversalSource 
> at generateTraversalSource method addV should be replaced by addE 
> {quote} 
> traversalSourceClass.addMethod(MethodSpec.methodBuilder("{color:#00875a}addE{color}")
>  .addModifiers(Modifier.PUBLIC)
>  .addAnnotation(Override.class)
>  .addParameter(String.class, "label")
>  .addStatement("$N clone = this.clone()", ctx.traversalSourceClazz)
>  .addStatement("clone.getBytecode().addStep($T.{color:#FF}*addV*{color}, 
> label)", GraphTraversal.Symbols.class)
>  .addStatement("$N traversal = new $N(clone)", ctx.defaultTraversalClazz, 
> ctx.defaultTraversalClazz)
>  .addStatement("return ($T) traversal.asAdmin().addStep(new $T(traversal, 
> label))", ctx.traversalClassName, AddEdgeStartStep.class)
>  .returns(ParameterizedTypeName.get(ctx.traversalClassName, 
> ClassName.get(Edge.class), ClassName.get(Edge.class)))
>  .build());
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [tinkerpop] spmallette closed pull request #1207: TINKERPOP-2303 fix GremlinDsl generate addV instead of addE

2019-10-03 Thread GitHub
[ pull request closed by spmallette ]

[ Full content available at: https://github.com/apache/tinkerpop/pull/1207 ]
This message was relayed via gitbox.apache.org for dev@tinkerpop.apache.org


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread Stephen Mallette (Jira)


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

Stephen Mallette commented on TINKERPOP-2289:
-

Committed/pushed this change:

https://github.com/apache/tinkerpop/commit/ed9071f8a6216325440c2d653ba6cdb9ad9bbf57

> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [tinkerpop] ammarove opened pull request #1207: TINKERPOP-2303 fix GremlinDsl generate addV instead of addE

2019-10-03 Thread GitHub


[ Full content available at: https://github.com/apache/tinkerpop/pull/1207 ]
This message was relayed via gitbox.apache.org for dev@tinkerpop.apache.org


[jira] [Commented] (TINKERPOP-2303) GremlinDsl generate addV instead of addE

2019-10-03 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot commented on TINKERPOP-2303:
---

ammarove commented on pull request #1207: TINKERPOP-2303 fix GremlinDsl 
generate addV instead of addE
URL: https://github.com/apache/tinkerpop/pull/1207
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> GremlinDsl generate addV instead of addE
> 
>
> Key: TINKERPOP-2303
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2303
> Project: TinkerPop
>  Issue Type: Bug
>  Components: process
>Affects Versions: 3.4.3
>Reporter: ali ammar
>Priority: Minor
>
> in GremlinDslProcessor class , when generating traversalSource 
> at generateTraversalSource method addV should be replaced by addE 
> {quote} 
> traversalSourceClass.addMethod(MethodSpec.methodBuilder("{color:#00875a}addE{color}")
>  .addModifiers(Modifier.PUBLIC)
>  .addAnnotation(Override.class)
>  .addParameter(String.class, "label")
>  .addStatement("$N clone = this.clone()", ctx.traversalSourceClazz)
>  .addStatement("clone.getBytecode().addStep($T.{color:#FF}*addV*{color}, 
> label)", GraphTraversal.Symbols.class)
>  .addStatement("$N traversal = new $N(clone)", ctx.defaultTraversalClazz, 
> ctx.defaultTraversalClazz)
>  .addStatement("return ($T) traversal.asAdmin().addStep(new $T(traversal, 
> label))", ctx.traversalClassName, AddEdgeStartStep.class)
>  .returns(ParameterizedTypeName.get(ctx.traversalClassName, 
> ClassName.get(Edge.class), ClassName.get(Edge.class)))
>  .build());
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot commented on TINKERPOP-2289:
---

spmallette commented on pull request #1206: TINKERPOP-2289 Better account for 
localhost with driver
URL: https://github.com/apache/tinkerpop/pull/1206
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (TINKERPOP-1838) Python sample script

2019-10-03 Thread Stephen Mallette (Jira)


 [ 
https://issues.apache.org/jira/browse/TINKERPOP-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-1838.
---
Fix Version/s: 3.4.4
   3.3.9
   3.5.0
 Assignee: Stephen Mallette
   Resolution: Done

Added a simple Python example script to the source code and referenced it in 
the documentation to be consistent with other GLVs that have "Application 
Examples" sections. 

> Python sample script
> 
>
> Key: TINKERPOP-1838
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1838
> Project: TinkerPop
>  Issue Type: Improvement
>  Components: python
>Affects Versions: 3.2.6
>Reporter: Stephen Mallette
>Assignee: Stephen Mallette
>Priority: Trivial
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> Create a sample project that can help get users started with Python and 
> Gremlin. Should probably be added to the series of gremlin-archetype 
> projects.Not sure what this might look like but just trying to be consistent 
> in the availability of sample projects. Perhaps using  
> https://cookiecutter.readthedocs.io/en/latest/index.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (TINKERPOP-1838) Python sample script

2019-10-03 Thread Stephen Mallette (Jira)


 [ 
https://issues.apache.org/jira/browse/TINKERPOP-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette updated TINKERPOP-1838:

Summary: Python sample script  (was: Python sample project)

> Python sample script
> 
>
> Key: TINKERPOP-1838
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1838
> Project: TinkerPop
>  Issue Type: Improvement
>  Components: python
>Affects Versions: 3.2.6
>Reporter: Stephen Mallette
>Priority: Trivial
>
> Create a sample project that can help get users started with Python and 
> Gremlin. Should probably be added to the series of gremlin-archetype 
> projects.Not sure what this might look like but just trying to be consistent 
> in the availability of sample projects. Perhaps using  
> https://cookiecutter.readthedocs.io/en/latest/index.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread Robert Dale (Jira)


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

Robert Dale commented on TINKERPOP-2289:


I think that would be sufficient.

> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread Stephen Mallette (Jira)


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

Stephen Mallette commented on TINKERPOP-2289:
-

[~rdale] you have a knack for knowing stuff like this - nice. we could update 
docs around that setting and then add that property to the pom.xml so maven 
would just set it automatically for testing purposes. good enough?

> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread Robert Dale (Jira)


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

Robert Dale commented on TINKERPOP-2289:


Java has a built-in mechanism [1] to disable IPv6 which would give you only one 
address.

{code:java}
$ groovysh 
groovy:000> InetAddress.getAllByName("localhost")
===> [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1]

$ groovysh -Djava.net.preferIPv4Stack=true
groovy:000> InetAddress.getAllByName("localhost")
===> [localhost/127.0.0.1]
{code}

I'm not sure I would try to "fix" it beyond this.

1. 
https://docs.oracle.com/javase/8/docs/api/java/net/doc-files/net-properties.html


> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot commented on TINKERPOP-2289:
---

spmallette commented on pull request #1206: TINKERPOP-2289 Better account for 
localhost with driver
URL: https://github.com/apache/tinkerpop/pull/1206
 
 
   https://issues.apache.org/jira/browse/TINKERPOP-2289
   
   Pretty small add-on patch to this issue. Not sure if this is the right fix 
for the comments on the related JIRA - asked for feedback over there. 
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (TINKERPOP-2289) Use address instead of hostname for connection

2019-10-03 Thread Stephen Mallette (Jira)


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

Stephen Mallette commented on TINKERPOP-2289:
-

any thoughts on what the solution is here? I decided to just try to deal with 
the "localhost" aspect of this as i'm not sure what else we might do. You can 
see the change in this PR:

https://github.com/apache/tinkerpop/pull/1206

does that solve things? better way? i'm not so good with all this networking 
stuff so there might be nicer ways to deal with this problem but we need 
something sooner than later because we go to code freeze next week for release. 
Happy to hear any feedback on this one...thanks.

> Use address instead of hostname for connection
> --
>
> Key: TINKERPOP-2289
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2289
> Project: TinkerPop
>  Issue Type: Bug
>  Components: driver
>Affects Versions: 3.4.3
>Reporter: Hua Jiang
>Assignee: Stephen Mallette
>Priority: Minor
> Fix For: 3.5.0, 3.3.9, 3.4.4
>
>
> The current implementation uses hostname to create connections. It causes two 
> problems in a scenario where multiple addresses are bound to the same domain 
> name.
>  # Load balancing is broken because multiple `Host` may connect to the same 
> address, and some addresses may have no connection at all.
>  # It produces misleading log messages because the address in the host label 
> may not be the one the host is actually connected to.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (TINKERPOP-2293) Gremlin-Python example not working

2019-10-03 Thread Stephen Mallette (Jira)


 [ 
https://issues.apache.org/jira/browse/TINKERPOP-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2293.
---
Resolution: Not A Bug

Just merged the improvements to all the GLV pages. This was a good improvement. 
Not going to add "fix version" as I don't think we need this issue to appear in 
the CHANGELOG on release. 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.4#803005)


[jira] [Commented] (TINKERPOP-2293) Gremlin-Python example not working

2019-10-03 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot commented on TINKERPOP-2293:
---

spmallette commented on pull request #1201: TINKERPOP-2293 Improved landing 
pages for all GLVs
URL: https://github.com/apache/tinkerpop/pull/1201
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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.4#803005)


[GitHub] [tinkerpop] jorgebay commented on issue #1202: TINKERPOP-2290 Add a way to catch a connection error

2019-10-03 Thread GitHub
@gion Sorry I didn't reply to you before, I agree that is useful to expose the 
`Connection` events.

[ Full content available at: https://github.com/apache/tinkerpop/pull/1202 ]
This message was relayed via gitbox.apache.org for dev@tinkerpop.apache.org