-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
What steps will reproduce the problem?
1. install protobuf from ubuntu repositories (which installs protobuf 2.2.0
libraries)
2. try to run an rpc server
3. you will observe
Traceback (most recent call last):
File "./rpcserver.py", line 4, in <module>
import protobuf.socketrpc.server as server
File "/usr/local/lib/python2.6/dist-packages/protobuf.socketrpc-1.3.2-py2.6.egg/protobuf/socketrpc/__init__.py", line 22, in <module>
from service import RpcThread, RpcService
File "/usr/local/lib/python2.6/dist-packages/protobuf.socketrpc-1.3.2-py2.6.egg/protobuf/socketrpc/service.py", line 43, in <module>
from protobuf.socketrpc.channel import SocketRpcChannel
File "/usr/local/lib/python2.6/dist-packages/protobuf.socketrpc-1.3.2-py2.6.egg/protobuf/socketrpc/channel.py", line 43, in <module>
import rpc_pb2 as rpc_pb
File "/usr/local/lib/python2.6/dist-packages/protobuf.socketrpc-1.3.2-py2.6.egg/protobuf/socketrpc/rpc_pb2.py", line 10, in <module>
DESCRIPTOR = descriptor.FileDescriptor(
AttributeError: 'module' object has no attribute 'FileDescriptor'
What is the expected output? What do you see instead?
rpc server should run.
What version of the product are you using? On what operating system?
ubuntu. protobuf 2.2.0
Please provide any additional information below.
I think rpc_pb2.py is compiled with protobuf 2.3.0, version 2.2.0 of protobuf
does not contain descriptor.FileDescriptor whereas 2.3.0 contains it.
Original issue reported on code.google.com by meteba...@gmail.com on 4 Mar 2011 at 3:32
Reactions are currently unavailable