build from source. ImportError: No module named google.protobuf.descriptor

38 views
Skip to first unread message

sliptonic

unread,
Nov 28, 2019, 1:31:50 PM11/28/19
to Machinekit
I cloned machinekit-hal and I'm trying to build with CNC using the script
I'm getting the error about the missing python library but can't find the package that provides it.



$ ./scripts/build_with_cnc 
checking for cython... /usr/bin/cython
checking cython version... 0.25.2
checking build toplevel... /home/brad/machinekit-hal
checking installation prefix... run in place
checking for grep... /bin/grep
checking for egrep... /bin/egrep
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for objcopy... objcopy
checking for ld... ld
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for pkg-config... pkg-config
checking platform-pc... default enabled for this architecture
checking platform-beaglebone... disabled for this architecture
checking platform-h3... disabled for this architecture
checking platform-chip... disabled for this architecture
checking platform-socfpga... disabled for this architecture
checking platform-raspberry... disabled for this architecture
checking platform-zedboard... disabled for this architecture
checking for uuidgen... /usr/bin/uuidgen
setting unique Machinekit UUID to 4d7eedb6-d462-4fb9-a3ff-f97470e9d67d
checking whether to enable remote operation... local operation on IPC sockets only, zeroconf not used
checking which directory to use for IPC sockets and other transient files... using /tmp for IPC sockets and other transient files
checking whether to build programming examples... not building example programs
checking for proto2js... none
checking whether to build protobuf Javascript bindings... not protobuf Javascript bindings
checking whether to use the common shared memory driver... default is no
checking whether to use inb/outb or ppdev ioctl on the x86 for parport I/O... using defaults: no
checking whether to build the emcweb interface... not building the emcweb interface
checking whether to build unstable development code... not building  development code
checking pkg-config is at least version 0.9.0... yes
checking for CK... no
checking for CZMQ... yes
checking for PROTOBUF... yes
checking for protoc... /usr/bin/protoc
checking python module: google.protobuf.descriptor... Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named google.protobuf.descriptor
no
configure: error: failed to find required module google.protobuf.descriptor

Michael Brown

unread,
Nov 30, 2019, 8:26:46 AM11/30/19
to Machinekit
I think you can find the protobuf requirements in following lines:

Best wishes
Michael B
Reply all
Reply to author
Forward
0 new messages