I'm looking for a simple example on how to connect to machinekit (remotely)
and - for argument's sake - retrieve the MachineInfo.
I've started up mkwrapper-sim and I can connect to it and use the Cetus UI,
so that seems to work alright. When I try to use pymachinetalk I get the
this error:
markus@pocketbeagle:~/github/pymachinetalk/examples/application_basic$
python ./command.py
Exception in thread zeroconf-ServiceBrowser__machinekit._tcp.local.:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1170, in run
handler(self.zc)
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1118, in
<lambda>
state_change=state_change,
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1033, in fire
h(**kwargs)
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1091, in
on_change
listener.add_service(*args)
File "/home/markus/github/pymachinetalk/pymachinetalk/dns_sd.py", line
215, in add_service
info = zeroconf.get_service_info(type_, name)
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1580, in
get_service_info
info = ServiceInfo(type_, name)
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1191, in
__init__
if not type_.endswith(service_type_name(name)):
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 246, in
service_type_name
"Unexpected characters '%s.'" % '.'.join(remaining[1:]))
BadTypeInNameException: Unexpected characters 'local pid 1159.'
Traceback (most recent call last):
File "./command.py", line 48, in <module>
get_out_of_estop()
File "./command.py", line 28, in get_out_of_estop
raise RuntimeError('Could not connect')
RuntimeError: Could not connect
Exception in thread zeroconf-Reaper (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1017, in run
File "/usr/lib/python2.7/dist-packages/zeroconf.py", line 1569, in wait
File "/usr/lib/python2.7/threading.py", line 289, in __exit__
File "/usr/lib/python2.7/threading.py", line 216, in __exit__
File "/usr/lib/python2.7/threading.py", line 203, in release
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Anybody got any pointers? Or can see where I go wrong?
Thanks a bunch,
Markus
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github:
https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
To view this discussion on the web visit
https://groups.google.com/d/msgid/machinekit/1e2b6e51-2ca1-439a-b179-7db645fbce84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.