[protobuf] extending enums

2010-11-13 Thread sabretoothedhamster
Hello everyone!

Is there any way to extend not only a message, but an enum also? E.g.
having the example from 
http://code.google.com/apis/protocolbuffers/docs/techniques.html
I would like to keep OneMessage description separated into two files.
Core part with Foo and Bar descriptions in one .proto file (like in
the second pre section), and the second .proto file with Baz
description. It is clear how to organize this on a message level, but
I would like also to have enum Type { FOO = 1; BAR = 2; } in the first
file, and enum Type { BAZ = 3; } in the second. Is it possible at all?
Any workarounds?

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Issue 235 in protobuf: ImportError: No module named google.protobuf

2010-11-13 Thread protobuf

Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 235 by 0xioerror: ImportError: No module named google.protobuf
http://code.google.com/p/protobuf/issues/detail?id=235

What steps will reproduce the problem?

1. Get protobuf-2.3.0

2. ./configure && make && cd python && python setup.py test && python  
setup.py install && cd /tmp


3.

$ python
[...]

import google.protobuf

Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named google.protobuf

$ tree -L 3 /usr/lib/python2.7/site-packages/protobuf-2.3.0-py2.7.egg/
/usr/lib/python2.7/site-packages/protobuf-2.3.0-py2.7.egg/
├── EGG-INFO
│   ├── dependency_links.txt
│   ├── namespace_packages.txt
│   ├── PKG-INFO
│   ├── SOURCES.txt
│   ├── top_level.txt
│   └── zip-safe
└── google
├── __init__.py
├── __init__.pyc
└── protobuf
├── descriptor_pb2.py
├── descriptor_pb2.pyc
├── descriptor.py
├── descriptor.pyc
├── __init__.py
├── __init__.pyc
├── internal
├── message.py
├── message.pyc
├── reflection.py
├── reflection.pyc
├── service.py
├── service.pyc
├── service_reflection.py
├── service_reflection.pyc
├── text_format.py
└── text_format.pyc


What is the expected output? What do you see instead?

It should work.


What version of the product are you using? On what operating system?

protobuf-2.3.0

python-2.7-3

Arch Linux


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.