Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1860

valueMap(True) result in error in gremlin-python

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.2.8, 3.3.2
    • python
    • None
    • Windows 10
      jvm 1.8, python 3.5
      tinkerpop 3.3.0

    Description

      I use [True] value as a argument of valueMap() step. And it result in error as below.
      (This error didn't occur in Groovy Query and return list of Value Map with id and label)

      // Python
      graph = Graph()
      g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))

      g.V().valueMap(True).toList()
      =>
      TypeError
      ----> 1 g.V().valueMap(True).toList()
      ...
      ~\site-packages\gremlin_python\structure\io\graphsonV3d0.py in objectify(cls, l, reader)
      453 x = 0
      454 while x < len(l):
      --> 455 new_dict[reader.toObject(l[x])] = reader.toObject(l[x + 1])
      456 x = x + 2
      457 return new_dict
      TypeError: unhashable type: 'dict'

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              yocote yokota masanori
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: