Enhancement #751

Unintuituve error message if protobuf python module is not found

Added by J. Wienke over 12 years ago. Updated almost 12 years ago.

Status:ResolvedStart date:12/08/2011
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:-
Target version:-

Description

WARNING:rstsandbox:Failed to load HeadObjects_pb2: No module named google.protobuf
DEBUG:rstsandbox:Found modules [] and errors ['InstantaneousPhase_pb2', 'TaskState_pb2', 'Battery_pb2', 'CpuMemory_pb2', 'Vicon_pb2', 'Modules_pb2', 'NaoTemperatures_pb2', 'System_pb2', 'MethodCall_pb2', 'Value_pb2', 'PointPair_pb2', 'Pose_pb2', 'Rotation_pb2', 'Translation_pb2', 'PersonHypotheses_pb2', 'PersonHypothesis_pb2', 'JointPositionState_pb2', 'XOPData_pb2', 'Image_pb2', 'CalibrationMatrices_pb2', 'CameraMatrix3x4_pb2', 'HeadObject_pb2', 'HeadObjects_pb2']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nao/rsb-interface/lib/python2.6/dist-packages/rstsandbox-0.0.0-py2.6.egg/rstsandbox/__init__.py", line 97, in <module>

RuntimeError: Unable to install modules/packages InstantaneousPhase_pb2, TaskState_pb2, Battery_pb2, CpuMemory_pb2, Vicon_pb2, Modules_pb2, NaoTemperatures_pb2, System_pb2, MethodCall_pb2, Value_pb2, PointPair_pb2, Pose_pb2, Rotation_pb2, Translation_pb2, PersonHypotheses_pb2, PersonHypothesis_pb2, JointPositionState_pb2, XOPData_pb2, Image_pb2, CalibrationMatrices_pb2, CameraMatrix3x4_pb2, HeadObject_pb2, HeadObjects_pb2 in rst namespace

The loger statements are not visible normally if logging is not configured correctly.

Associated revisions

Revision 5101c3dd
Added by J. Wienke almost 12 years ago

python: provide better feedback if loading the stable modules from the sandbox does not work

fixes #751

History

#1 Updated by J. Wienke almost 12 years ago

  • Status changed from New to In Progress
  • Assignee set to J. Wienke

#2 Updated by J. Wienke almost 12 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset r309.

Also available in: Atom PDF