steph
unread,Sep 20, 2012, 4:07:49 PM9/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prot...@googlegroups.com
I have been using protocol buffers with Cpp and Java and have gotten those running smoothly but I'm having trouble with python (admittedly I'm not very good with python so hopefully this isn't just me goofing something).
I have the main protocol buffer files, the source, protoc, protogen, all in one central location so that my build processes from Java and cpp can utilize the same files. Then in my java project I include proto2javame.jar and in cpp I include Google.Protocolbuffers.dll and that allows me to use the generated classes. However I can't find an equivalent for python. I have generated my python libraries but when I try to use them I get errors that No Module named google.protobuff exist (i'm using python 3.2.3).
How do I have my python generated classes import the appropriate libraries while still keeping all of my protobuff binaries in a central location? Is there a way to modify my build argument to include all necessary libraries.
My current build line looks like
%1 is the current protocol buffer file
>protoc --descriptor_set_out = %1.bin --proto_path=[mycomputerpath]\protos --proto_path=. --include_imports --python_out=. %1.proto
thanks!