Boost Python exception can't be pickled

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Standard
    • Component/s: SW
    • None
    • Environment:

      Calling a routine on a server application from a client via ZMQ. This is in the context of testing SMuRF software using rogue v6.

      `Boost.Python` is not found when pickling an exception object in order to transmit via ZMQ. This causes the entire application to crash.

      e.g. In this case an exception raised due to incorrect arguments passed to a C++ function wrapped by Boost leads to a server crash:

      During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/src/rogue/python/pyrogue/interfaces/_ZmqServer.py", line 65, in _doRequest return pickle.dumps(msg) ^^^^^^^^^^^^^^^^^ _pickle.PicklingError: Can't pickle <class 'Boost.Python.ArgumentError'>: import of module 'Boost.Python' failed terminate called after throwing an instance of 'rogue::GeneralError'

              Assignee:
              Ryan Herbst
              Reporter:
              Pinsonneault-Marotte, Tristan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: