Revision 91802565

View differences:

client/python/hlrc_client/MiddlewareRSB.py
30 30

  
31 31
import rsb
32 32
import rsb.converter
33
import rst
34
import rstsandbox
35
from   rst.robot.EmotionState_pb2 import EmotionState
36
from   rst.robot.Animation_pb2    import Animation
37
from   rst.robot.GazeTarget_pb2   import GazeTarget
38
from   rst.robot.MouthTarget_pb2  import MouthTarget
39
    
33
try:
34
    import rst
35
    import rstsandbox
36
    from rst.robot.EmotionState_pb2 import EmotionState
37
    from rst.robot.Animation_pb2    import Animation
38
    from rst.robot.GazeTarget_pb2   import GazeTarget
39
    from rst.robot.MouthTarget_pb2  import MouthTarget
40
except ImportError, e:
41
    print("Warning, RSB could be imported, but the required message types do not exists:")
42
    print e
43

  
40 44
#except ImportError as exception:
41 45
#    sys.stderr.write("ImportError: {}\n> HINT: try to export PYTHONPATH=$PYTHONPATH:$YOUR_PREFIX/lib/python2.7/site-packages/\n\n".format(exception))
42 46
#    sys.exit(errno.ENOPKG)

Also available in: Unified diff