mlot / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Can't make simple example #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd examples/simple
2. make

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

nanopb/generator/proto/nanopb_pb2.py", line 6, in <module>
    from google.protobuf.internal import enum_type_wrapper
ImportError: cannot import name enum_type_wrapper
--nanopb_out: protoc-gen-nanopb: Plugin failed with status code 1.
make: *** [fileproto.pb.c] Error 1

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

Mac OS X 10.9.4
Python 2.7.5
libprotoc 2.6.0

Please provide any additional information below.

I had try to build package for mac, but it's dsn't work for me.

./make_mac_package.sh
++ git describe --always
+ VERSION=nanopb-0.3.1-1-gbaf44b3-macosx-x86
+ DEST=dist/nanopb-0.3.1-1-gbaf44b3-macosx-x86
+ rm -rf dist/nanopb-0.3.1-1-gbaf44b3-macosx-x86
+ mkdir -p dist/nanopb-0.3.1-1-gbaf44b3-macosx-x86
+ git archive HEAD
+ tar x -C dist/nanopb-0.3.1-1-gbaf44b3-macosx-x86
+ make -BC dist/nanopb-0.3.1-1-gbaf44b3-macosx-x86/generator/proto
make: *** dist/nanopb-0.3.1-1-gbaf44b3-macosx-x86/generator/proto: No such file 
or directory.  Stop.

Original issue reported on code.google.com by gNO...@gmail.com on 25 Sep 2014 at 8:56

GoogleCodeExporter commented 9 years ago
I don't have Mac OS X 10.9 to test currently.

But are you using the prebuilt binary packages or the source distribution? Do 
you have other Python or protobuf installations on the machine that could 
perhaps cause some conflicts?

The problem seems similar to what is discussed here:
https://groups.google.com/forum/#!topic/PyInstaller/lIqrHtCUOj4

Original comment by Petteri.Aimonen on 27 Sep 2014 at 6:51

GoogleCodeExporter commented 9 years ago
I confirm that I can build complex .proto files in Mac, also with the latest 
Yosemite OS. Probably you did not installed the protobuf python module.

Original comment by alvarolb@gmail.com on 10 Nov 2014 at 2:56

GoogleCodeExporter commented 9 years ago
The binary package *should* work without any installation, but I haven't been 
able to verify it on a clean Mac OS X so far.

Original comment by Petteri.Aimonen on 10 Nov 2014 at 3:17

GoogleCodeExporter commented 9 years ago
I haven't heard of any reports of binary package not working, and at least a 
few reports saying that it does work also on Yosemite. Custom protobuf 
installations can be broken in many ways, but that is a problem for the 
upstream protobuf project and not nanopb.

Original comment by Petteri.Aimonen on 22 Dec 2014 at 6:43