Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Releases: google/sprockets

Fix a wrong error type

03 Feb 21:01
6d551a4
Compare
Choose a tag to compare
Pre-release
Fix crash in sprockets/stl/lib.py (#31)

Unclear how this worked before, maybe python wasn't evaluating the except
clause?

Traceback (most recent call last):
  File "sprockets/test_driver.py", line 349, in <module>
    sys.exit(0 if Main() else 1)
  File "sprockets/test_driver.py", line 345, in Main
    return RunTest(manifest_filename, manifest_arg_dict, args)
  File "sprockets/test_driver.py", line 327, in RunTest
    return TraverseGraph(transitions, states, args)
  File "sprockets/test_driver.py", line 276, in TraverseGraph
    if transition.Run():
  File "sprockets/stl/state.py", line 284, in Run
    if e.Run() is False:
  File "sprockets/stl/base.py", line 671, in Run
    return self.event.Wait(*new_args)
  <snip>
  File "sprockets/stl/message.py", line 329, in Match
    decoded = self.msg.encoding.ParseFromString(encoded, self.msg)
  File "sprockets/stl/lib.py", line 117, in ParseFromString
    base64.b64decode(encoded), message_type)
  File "sprockets/stl/lib.py", line 62, in ParseFromString
    except stl.message.DecodeError:
AttributeError: 'module' object has no attribute 'DecodeError'

Compatible to python 3 and protobuf 3

31 Jan 22:18
4c8d25d
Compare
Choose a tag to compare
Pre-release
Make python 3 compatible. (#27)

1) Fix example_base.stl correctly.
2) Custom deepcopy for MessageFromExternal since
   google.protobuf.pyext._message.MessageDescriptor is not copyable.
3) Replace more dict.iteritems() with dict.items().