machinekit / machinetalk-protobuf

Protobuf declarations for machinekit messages
MIT License
10 stars 11 forks source link

add Python examples and install README #58

Closed machinekoder closed 8 years ago

mhaberler commented 8 years ago
mah@jessie64:~/machinetalk-protobuf/python$ sudo python setup.py 
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied
mah@jessie64:~/machinetalk-protobuf/python$ 

try install:

this only installs to python/build but not globally:

mah@jessie64:~/machinetalk-protobuf/python$ sudo python setup.py install
running install
running bdist_egg
running egg_info
creating machinetalk_protobuf.egg-info
writing requirements to machinetalk_protobuf.egg-info/requires.txt
writing machinetalk_protobuf.egg-info/PKG-INFO
writing namespace_packages to machinetalk_protobuf.egg-info/namespace_packages.txt
writing top-level names to machinetalk_protobuf.egg-info/top_level.txt
writing dependency_links to machinetalk_protobuf.egg-info/dependency_links.txt
writing manifest file 'machinetalk_protobuf.egg-info/SOURCES.txt'
reading manifest file 'machinetalk_protobuf.egg-info/SOURCES.txt'
writing manifest file 'machinetalk_protobuf.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
Generating machinetalk/protobuf/canon_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/canon.proto']
Generating machinetalk/protobuf/config_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/config.proto']
Generating machinetalk/protobuf/emcclass_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/emcclass.proto']
Generating machinetalk/protobuf/log_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/log.proto']
Generating machinetalk/protobuf/message_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/message.proto']
Generating machinetalk/protobuf/motcmds_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/motcmds.proto']
Generating machinetalk/protobuf/nanopb_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/nanopb.proto']
Generating machinetalk/protobuf/object_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/object.proto']
Generating machinetalk/protobuf/preview_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/preview.proto']
Generating machinetalk/protobuf/rtapi_message_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/rtapi_message.proto']
Generating machinetalk/protobuf/rtapicommand_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/rtapicommand.proto']
Generating machinetalk/protobuf/status_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/status.proto']
Generating machinetalk/protobuf/task_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/task.proto']
Generating machinetalk/protobuf/test_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/test.proto']
Generating machinetalk/protobuf/types_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/types.proto']
Generating machinetalk/protobuf/value_pb2.py...
Command: ['/usr/bin/protoc', '-I../src', u'-I/usr/include', '--python_out=.', '../src/machinetalk/protobuf/value.proto']
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/machinetalk
copying machinetalk/__init__.py -> build/lib.linux-x86_64-2.7/machinetalk
creating build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/types_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/rtapi_message_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/__init__.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/message_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/test_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/preview_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/value_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/nanopb_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/status_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/canon_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/motcmds_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/config_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/object_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/rtapicommand_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/emcclass_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/task_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
copying machinetalk/protobuf/log_pb2.py -> build/lib.linux-x86_64-2.7/machinetalk/protobuf
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/machinetalk
creating build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/types_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/rtapi_message_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/__init__.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/message_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/test_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/preview_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/value_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/nanopb_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/status_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/canon_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/motcmds_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/config_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/object_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/rtapicommand_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/emcclass_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/task_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/protobuf/log_pb2.py -> build/bdist.linux-x86_64/egg/machinetalk/protobuf
copying build/lib.linux-x86_64-2.7/machinetalk/__init__.py -> build/bdist.linux-x86_64/egg/machinetalk
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/types_pb2.py to types_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/rtapi_message_pb2.py to rtapi_message_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/message_pb2.py to message_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/test_pb2.py to test_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/preview_pb2.py to preview_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/value_pb2.py to value_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/nanopb_pb2.py to nanopb_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/status_pb2.py to status_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/canon_pb2.py to canon_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/motcmds_pb2.py to motcmds_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/config_pb2.py to config_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/object_pb2.py to object_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/rtapicommand_pb2.py to rtapicommand_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/emcclass_pb2.py to emcclass_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/task_pb2.py to task_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/protobuf/log_pb2.py to log_pb2.pyc
byte-compiling build/bdist.linux-x86_64/egg/machinetalk/__init__.py to __init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying machinetalk_protobuf.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying machinetalk_protobuf.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying machinetalk_protobuf.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying machinetalk_protobuf.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying machinetalk_protobuf.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying machinetalk_protobuf.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/machinetalk_protobuf-1.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing machinetalk_protobuf-1.0-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/machinetalk_protobuf-1.0-py2.7.egg
Copying machinetalk_protobuf-1.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
machinetalk-protobuf 1.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/machinetalk_protobuf-1.0-py2.7.egg
Processing dependencies for machinetalk-protobuf==1.0
Searching for setuptools==20.10.1
Best match: setuptools 20.10.1
setuptools 20.10.1 is already the active version in easy-install.pth
Installing easy_install script to /usr/local/bin

Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for machinetalk-protobuf==1.0
mah@jessie64:~/machinetalk-protobuf/python$ 
mhaberler commented 8 years ago

(stretch here)

machinekoder commented 8 years ago

No the modules should be correctly installed: Installed /usr/local/lib/python2.7/dist-packages/machinetalk_protobuf-1.0-py2.7.egg