Re: [Neo4j] Re: Can't use python interface. Can't build gremlin plugin.

2014-07-30 Thread Nigel Small
Thanks Aru :-)


On 30 July 2014 15:00, Aru Sahni  wrote:

> Is there any specific reason you're using bulbs/Gremlin? I'd really
> recommend you check out py2neo - Nigel's done a great job with it.
>
> That being said, here's the process I've used to build Gremlin when I was
> first getting start - this needs to be run on your neo4j server. *I
> haven't tested it with neo4j 2.1.x*.
>
> $ git clone https://github.com/neo4j-contrib/gremlin-plugin.git
> $ cd gremlin-plugin
> $ neo4j stop
> $ mvn clean package
>  $ unzip target/neo4j-gremlin-plugin-2.0-SNAPSHOT-server-plugin.zip -d
> $NEO4J_HOME/plugins/gremlin-plugin
> $ neo4j start
> $ curl http://localhost:7474/db/data/ext/GremlinPlugin # Will return with
> an exception if the plugin wasn't installed successfully
>
> HTH,
> ~A
>
>
> On Wed, Jul 30, 2014 at 1:02 AM, Daniel Brami 
> wrote:
>
>> Hey Darren - I too have been struggling with getting bulbs and neo4j to
>> work.
>> Even installed the tinkerpop3 stack but still no luck - i must be doing
>> something wrong...
>> Did you get it working?
>>
>> On Sunday, November 10, 2013 7:02:23 AM UTC-8, Darren Govoni wrote:
>>>
>>> Hi,
>>>  I am trying to use the python bulbs interface to Neo4j, here is a
>>> snippet:
>>>
>>> >>> from bulbs.neo4jserver import Graph
>>> >>> g = Graph()
>>> >>> james = g.vertices.create(name="James")
>>> Traceback (most recent call last):
>>>   File "", line 1, in 
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/element.py", line
>>> 565, in create
>>> resp = self.client.create_vertex(data)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>>> neo4jserver/client.py", line 424, in create_vertex
>>> return self.create_indexed_vertex(data, index_name, keys=None)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>>> neo4jserver/client.py", line 1027, in create_indexed_vertex
>>> return self.gremlin(script,params)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>>> neo4jserver/client.py", line 384, in gremlin
>>> return self.request.post(path, params)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 128,
>>> in post
>>> return self.request(POST, path, params)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 183,
>>> in request
>>> return self.response_class(http_resp, self.config)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>>> neo4jserver/client.py", line 217, in __init__
>>> self.handle_response(response)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>>> neo4jserver/client.py", line 249, in handle_response
>>> response_handler(response)
>>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 39,
>>> in not_found
>>> raise LookupError(http_resp)
>>> LookupError: ({'status': '404', 'content-length': '794', 'content-type': 
>>> 'application/json;
>>> charset=UTF-8', 'access-control-allow-origin': '*', 'server':
>>> 'Jetty(6.1.25)'}, '{\n  "message" : "No such ServerPlugin:
>>> \\"GremlinPlugin\\"",\n  "exception" : "PluginLookupException",\n
>>>  "fullname" : "org.neo4j.server.plugins.PluginLookupException",\n
>>>  "stacktrace" : [ 
>>> "org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:124)",
>>> "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:165)",
>>> "org.neo4j.server.rest.web.ExtensionService.
>>> invokeGraphDatabaseExtension(ExtensionService.java:322)",
>>> "org.neo4j.server.rest.web.ExtensionService.
>>> invokeGraphDatabaseExtension(ExtensionService.java:144)",
>>> "java.lang.reflect.Method.invoke(Method.java:606)",
>>> "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher
>>> .dispatch(TransactionalRequestDispatcher.java:132)",
>>> "org.neo4j.server.rest.security.SecurityFilter.
>>> doFilter(SecurityFilter.java:112)" ]\n}')
>>> >>>
>>>
>>>
>>> So I read that the gremlin plugin is annoyingly not part of neo4j server
>>> that seems to need it. I then clone the gremlin plugin project.
>>> It does not build.
>>>
>>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '
>>> 6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '
>>> 301' - RETRYING
>>> Downloading: http://maven.glassfish.org/content/groups/glassfish/net/
>>> java/jvnet-parent/1/jvnet-parent-1.pom
>>> 185b downloaded  (jvnet-parent-1.pom)
>>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '
>>> 6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '
>>> 301' - IGNORING
>>> [INFO] 
>>> 
>>> [ERROR] BUILD ERROR
>>> [INFO] 
>>> 
>>> [INFO] Error building POM (may not be this project's POM).
>>>
>>>
>>>
>>>
>>> Project ID: com.sun.jersey:jersey-project:pom:1.9
>>>
>>>
>>> Reason: Cannot find parent: net.java:jvnet-parent for project:
>>> com.sun.jersey:jersey-project:pom:1.9 for project
>>> com.sun.jersey:jersey-project:pom:1.9
>>>
>>>
>>> Wha

Re: [Neo4j] Re: Can't use python interface. Can't build gremlin plugin.

2014-07-30 Thread Aru Sahni
Is there any specific reason you're using bulbs/Gremlin? I'd really
recommend you check out py2neo - Nigel's done a great job with it.

That being said, here's the process I've used to build Gremlin when I was
first getting start - this needs to be run on your neo4j server. *I haven't
tested it with neo4j 2.1.x*.

$ git clone https://github.com/neo4j-contrib/gremlin-plugin.git
$ cd gremlin-plugin
$ neo4j stop
$ mvn clean package
$ unzip target/neo4j-gremlin-plugin-2.0-SNAPSHOT-server-plugin.zip -d
$NEO4J_HOME/plugins/gremlin-plugin
$ neo4j start
$ curl http://localhost:7474/db/data/ext/GremlinPlugin # Will return with
an exception if the plugin wasn't installed successfully

HTH,
~A


On Wed, Jul 30, 2014 at 1:02 AM, Daniel Brami 
wrote:

> Hey Darren - I too have been struggling with getting bulbs and neo4j to
> work.
> Even installed the tinkerpop3 stack but still no luck - i must be doing
> something wrong...
> Did you get it working?
>
> On Sunday, November 10, 2013 7:02:23 AM UTC-8, Darren Govoni wrote:
>>
>> Hi,
>>  I am trying to use the python bulbs interface to Neo4j, here is a
>> snippet:
>>
>> >>> from bulbs.neo4jserver import Graph
>> >>> g = Graph()
>> >>> james = g.vertices.create(name="James")
>> Traceback (most recent call last):
>>   File "", line 1, in 
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/element.py", line
>> 565, in create
>> resp = self.client.create_vertex(data)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 424, in create_vertex
>> return self.create_indexed_vertex(data, index_name, keys=None)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 1027, in create_indexed_vertex
>> return self.gremlin(script,params)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 384, in gremlin
>> return self.request.post(path, params)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 128,
>> in post
>> return self.request(POST, path, params)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 183,
>> in request
>> return self.response_class(http_resp, self.config)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 217, in __init__
>> self.handle_response(response)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 249, in handle_response
>> response_handler(response)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 39,
>> in not_found
>> raise LookupError(http_resp)
>> LookupError: ({'status': '404', 'content-length': '794', 'content-type': 
>> 'application/json;
>> charset=UTF-8', 'access-control-allow-origin': '*', 'server':
>> 'Jetty(6.1.25)'}, '{\n  "message" : "No such ServerPlugin:
>> \\"GremlinPlugin\\"",\n  "exception" : "PluginLookupException",\n
>>  "fullname" : "org.neo4j.server.plugins.PluginLookupException",\n
>>  "stacktrace" : [ 
>> "org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:124)",
>> "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:165)",
>> "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:322)",
>> "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:144)",
>> "java.lang.reflect.Method.invoke(Method.java:606)",
>> "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher
>> .dispatch(TransactionalRequestDispatcher.java:132)",
>> "org.neo4j.server.rest.security.SecurityFilter.
>> doFilter(SecurityFilter.java:112)" ]\n}')
>> >>>
>>
>>
>> So I read that the gremlin plugin is annoyingly not part of neo4j server
>> that seems to need it. I then clone the gremlin plugin project.
>> It does not build.
>>
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '
>> 6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '
>> 301' - RETRYING
>> Downloading: http://maven.glassfish.org/content/groups/glassfish/net/
>> java/jvnet-parent/1/jvnet-parent-1.pom
>> 185b downloaded  (jvnet-parent-1.pom)
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '
>> 6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '
>> 301' - IGNORING
>> [INFO] 
>> 
>> [ERROR] BUILD ERROR
>> [INFO] 
>> 
>> [INFO] Error building POM (may not be this project's POM).
>>
>>
>>
>>
>> Project ID: com.sun.jersey:jersey-project:pom:1.9
>>
>>
>> Reason: Cannot find parent: net.java:jvnet-parent for project:
>> com.sun.jersey:jersey-project:pom:1.9 for project
>> com.sun.jersey:jersey-project:pom:1.9
>>
>>
>> What to do here? Help appreciated.
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send

Re: [Neo4j] Re: Can't use python interface. Can't build gremlin plugin.

2014-07-30 Thread Michael Hunger
What were the steps you've taken and results?
Perhaps the tinkerpop google group can help more with installing bulbs +
rexter?

Cheers,

Michael


On Wed, Jul 30, 2014 at 12:02 AM, Daniel Brami 
wrote:

> Hey Darren - I too have been struggling with getting bulbs and neo4j to
> work.
> Even installed the tinkerpop3 stack but still no luck - i must be doing
> something wrong...
> Did you get it working?
>
>
> On Sunday, November 10, 2013 7:02:23 AM UTC-8, Darren Govoni wrote:
>>
>> Hi,
>>  I am trying to use the python bulbs interface to Neo4j, here is a
>> snippet:
>>
>> >>> from bulbs.neo4jserver import Graph
>> >>> g = Graph()
>> >>> james = g.vertices.create(name="James")
>> Traceback (most recent call last):
>>   File "", line 1, in 
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/element.py", line
>> 565, in create
>> resp = self.client.create_vertex(data)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 424, in create_vertex
>> return self.create_indexed_vertex(data, index_name, keys=None)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 1027, in create_indexed_vertex
>> return self.gremlin(script,params)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 384, in gremlin
>> return self.request.post(path, params)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 128,
>> in post
>> return self.request(POST, path, params)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 183,
>> in request
>> return self.response_class(http_resp, self.config)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 217, in __init__
>> self.handle_response(response)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/
>> neo4jserver/client.py", line 249, in handle_response
>> response_handler(response)
>>   File "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 39,
>> in not_found
>> raise LookupError(http_resp)
>> LookupError: ({'status': '404', 'content-length': '794', 'content-type': 
>> 'application/json;
>> charset=UTF-8', 'access-control-allow-origin': '*', 'server':
>> 'Jetty(6.1.25)'}, '{\n  "message" : "No such ServerPlugin:
>> \\"GremlinPlugin\\"",\n  "exception" : "PluginLookupException",\n
>>  "fullname" : "org.neo4j.server.plugins.PluginLookupException",\n
>>  "stacktrace" : [ 
>> "org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:124)",
>> "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:165)",
>> "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:322)",
>> "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:144)",
>> "java.lang.reflect.Method.invoke(Method.java:606)",
>> "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher
>> .dispatch(TransactionalRequestDispatcher.java:132)",
>> "org.neo4j.server.rest.security.SecurityFilter.
>> doFilter(SecurityFilter.java:112)" ]\n}')
>> >>>
>>
>>
>> So I read that the gremlin plugin is annoyingly not part of neo4j server
>> that seems to need it. I then clone the gremlin plugin project.
>> It does not build.
>>
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '
>> 6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '
>> 301' - RETRYING
>> Downloading: http://maven.glassfish.org/content/groups/glassfish/net/
>> java/jvnet-parent/1/jvnet-parent-1.pom
>> 185b downloaded  (jvnet-parent-1.pom)
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '
>> 6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '
>> 301' - IGNORING
>> [INFO] 
>> 
>> [ERROR] BUILD ERROR
>> [INFO] 
>> 
>> [INFO] Error building POM (may not be this project's POM).
>>
>>
>>
>>
>> Project ID: com.sun.jersey:jersey-project:pom:1.9
>>
>>
>> Reason: Cannot find parent: net.java:jvnet-parent for project:
>> com.sun.jersey:jersey-project:pom:1.9 for project
>> com.sun.jersey:jersey-project:pom:1.9
>>
>>
>> What to do here? Help appreciated.
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.