Bug #1071

Tutorial "Sending Data" creates error report

Added by Anonymous almost 12 years ago. Updated almost 12 years ago.

Status:ResolvedStart date:07/11/2012
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:Python
Target version:rsb-0.7

Description

After copying the example in eclipse and run it, the following error report appears.

Traceback (most recent call last):
  File "/home/nao/workspace/Test/src/root/nested/RSBTest.py", line 10, in <module>
    informer = createInformer("/example/informer", dataType=str)
  File "/usr/local/lib/python2.6/dist-packages/rsb_python-0.7.0.31-py2.6.egg/rsb/__init__.py", line 1459, in createInformer
    return Informer(Scope.ensureScope(scope), dataType, config)
  File "/usr/local/lib/python2.6/dist-packages/rsb_python-0.7.0.31-py2.6.egg/rsb/__init__.py", line 1204, in __init__
    connectors = self.getConnectors('out', config)
  File "/usr/local/lib/python2.6/dist-packages/rsb_python-0.7.0.31-py2.6.egg/rsb/__init__.py", line 1140, in getConnectors
    import rsb.transport.socket
  File "/usr/local/lib/python2.6/dist-packages/rsb_python-0.7.0.31-py2.6.egg/rsb/transport/socket/__init__.py", line 38, in <module>
    import rsb.transport.conversion as conversion
  File "/usr/local/lib/python2.6/dist-packages/rsb_python-0.7.0.31-py2.6.egg/rsb/transport/conversion.py", line 40, in <module>
    from rsb.protocol.EventId_pb2 import EventId
  File "/usr/local/lib/python2.6/dist-packages/rsb_python-0.7.0.31-py2.6.egg/rsb/protocol/EventId_pb2.py", line 11, in <module>
    DESCRIPTOR = descriptor.FileDescriptor(
AttributeError: 'module' object has no attribute 'FileDescriptor'

Associated revisions

Revision 56542dad
Added by J. Wienke almost 12 years ago

try to include the original proto files in the sdist archive so that users of the package can compile them on their own with their respective protoc version.

refs #1071

History

#1 Updated by J. Wienke almost 12 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee set to J. Wienke
  • Target version set to rsb-0.7

Somehow there seems to be a binary distribution of rsb-python on the pypi server, which is bound to a specific protocol buffers version. We only want source distributions on the pypi. I will try to find out how it got there.

#2 Updated by J. Wienke almost 12 years ago

Ok, it gets a bit more complicated. The thing is that the generated protobuf files are included in the source distribution. This is the actual problem with older protobuf versions, where the general python library might not be compatible with the generated ones. I will have to include the protocol files directly in the source distribution and afterwards invoke the protubuf compiler for client of the package again.

#3 Updated by J. Wienke almost 12 years ago

  • % Done changed from 0 to 100

This should work now again, but you need to force easy_install or pip to upgrade the existing installation. Otherwise, no new file is fetched from the server.

#4 Updated by J. Wienke almost 12 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF