You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In python 2.7 there is a subtle bug with unpickling custom exceptions; this was fixed in 3.3, see https://bugs.python.org/issue1692335. As a workaround for 2.7 we can re-define these exceptions as below.
classROSBagException(Exception):
""" Base class for exceptions in rosbag. """passclassROSBagFormatException(ROSBagException):
""" Exceptions for errors relating to the bag file format. """passclassROSBagUnindexedException(ROSBagException):
""" Exception for unindexed bags. """def__init__(self, *args):
ROSBagException.__init__(self, 'Unindexed bag')
For context, I came across this issue when a ROSBagUnindexedException was raised in a multiprocessing.Pool.map thread. It throws the __init__ exception and hangs, as described here: https://lists.gt.net/python/bugs/1025933
The text was updated successfully, but these errors were encountered:
In python 2.7 there is a subtle bug with unpickling custom exceptions; this was fixed in 3.3, see https://bugs.python.org/issue1692335. As a workaround for 2.7 we can re-define these exceptions as below.
For context, I came across this issue when a
ROSBagUnindexedException
was raised in amultiprocessing.Pool.map
thread. It throws the__init__
exception and hangs, as described here: https://lists.gt.net/python/bugs/1025933The text was updated successfully, but these errors were encountered: