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

TypeError when grouping by multiple attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.3.3
    • None
    • python
    • None

    Description

      The python serialization engine fails when trying to group a path by two intermediate variables:

       

      graph = Graph()
      
      g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))
      
      g.V().as_("a").out().out().as_("b").path().group().by(__.select("a", "b")).unfold().toList()
      
      ~/tinkerpop/gremlin-python/src/main/jython/gremlin_python/structure/io/graphsonV3d0.py in objectify(cls, l, reader)
      456 while x < len(l):
      457 new_dict[reader.toObject(l[x])] = reader.toObject(l[x + 1])
      --> 458 x = x + 2
      459 return new_dict
      460 
      
      TypeError: unhashable type: 'dict'
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            piercefreeman Pierce Freeman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: