Giter VIP home page Giter VIP logo

Comments (13)

nicolewhite avatar nicolewhite commented on August 12, 2024

Any ideas how to do this with py2neo? When I try:

from py2neo import Graph
graph = Graph("https://localhost:7473/db/data/“)
graph.neo4j_version

I get:

py2neo.packages.httpstream.http.SocketError: Exec format error

from cycli.

albertoperdomo avatar albertoperdomo commented on August 12, 2024

Have you tried including the username and password?
From what I know it should work

from py2neo import Graph

graph = Graph("https://user:[email protected]:7374/db/data/")

Any ideas @nigelsmall ?

from cycli.

nicolewhite avatar nicolewhite commented on August 12, 2024

Auth is disabled. Btw it's not until I actually try to get something from Neo4j that I get that error.

The line graph = Graph("https://localhost:7473/db/data/“) goes by fine, then when I do something like graph.node_labels I get that error.

from cycli.

albertoperdomo avatar albertoperdomo commented on August 12, 2024

What version of py2neo are you using?

from cycli.

nicolewhite avatar nicolewhite commented on August 12, 2024

2.0.7

from cycli.

albertoperdomo avatar albertoperdomo commented on August 12, 2024

According to the docs, it should work.
Version of Neo4j?

from cycli.

nicolewhite avatar nicolewhite commented on August 12, 2024

I'm on Neo4j 2.3.0-M02.

Edit: Same error with Neo4j 2.2.3.

from cycli.

nicolewhite avatar nicolewhite commented on August 12, 2024

Will you install from this branch and let me know if it works for you?

from cycli.

albertoperdomo avatar albertoperdomo commented on August 12, 2024

Seems to connect at first, but then fails. Output:

/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
 ______     __  __     ______     __         __
/\  ___\   /\ \_\ \   /\  ___\   /\ \       /\ \
\ \ \____  \ \____ \  \ \ \____  \ \ \____  \ \ \
 \ \_____\  \/\_____\  \ \_____\  \ \_____\  \ \_\
  \/_____/   \/_____/   \/_____/   \/_____/   \/_/

Version: 0.1.1
Bug reports: https://github.com/nicolewhite/cycli/issues

> MATCH (n) RETURN n LIMIT 1



Can't assign requested address
>

Expecting object: line 1 column 226 (char 225)
>

from cycli.

nicolewhite avatar nicolewhite commented on August 12, 2024

This was with the -s flag?

from cycli.

albertoperdomo avatar albertoperdomo commented on August 12, 2024
$ cycli -h host.domain.com -s -P port -u username

from cycli.

nicolewhite avatar nicolewhite commented on August 12, 2024

And you say you had this working with py2neo? Can you show me the code exactly?

from cycli.

albertoperdomo avatar albertoperdomo commented on August 12, 2024

Turns out I ran that test with an outdated version. The error message Can't assign requested address was due to a bug in the URLs returned by the transactional endpoint in Neo4j 2.1.6. This happens with py2neo, too, because it tries connecting to localhost:0.

I just ran some tests with py2neo and cycli against 2.2.3 and it works correctly!

So sorry about the confusion!! Thanks for doing this!

from cycli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.