dhylands wrote:The released version of rshell has a minor issue on the Mac, but you can edit the installed main.py script and comment out one line and it will then work on the Mac. The line you need to comment is this one:
https://github.com/dhylands/rshell/blob ... n.py#L2234
(the call to autoconnect).
that seems a nice tool.
I did install it using pip
but when i run it, or import it, i get an error:
Code: Select all
In [1]: import rshell
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-fd3019c8af2a> in <module>()
----> 1 import rshell
/Users/vm/Desktop/pyboard/rshell.py in <module>()
12 # from __future__ import print_function
13
---> 14 from rshell.getch import getch
15 from rshell.pyboard import Pyboard
16
ImportError: No module named 'rshell.getch'; 'rshell' is not a package
Then i installed it from the github distort using
Now i get a different error:
Code: Select all
$ rshell
Connecting to /dev/cu.usbmodem262442 ...
Traceback (most recent call last):
File "/Users/vm/anaconda/bin/rshell", line 9, in <module>
load_entry_point('rshell==0.0.1', 'console_scripts', 'rshell')()
File "/Users/vm/anaconda/lib/python3.5/site-packages/rshell-0.0.1-py3.5.egg/rshell/command_line.py", line 4, in main
rshell.main.main()
File "/Users/vm/anaconda/lib/python3.5/site-packages/rshell-0.0.1-py3.5.egg/rshell/main.py", line 2234, in main
autoconnect()
File "/Users/vm/anaconda/lib/python3.5/site-packages/rshell-0.0.1-py3.5.egg/rshell/main.py", line 178, in autoconnect
context = pyudev.Context()
File "/Users/vm/anaconda/lib/python3.5/site-packages/pyudev/core.py", line 65, in __init__
self._libudev = load_udev_library()
File "/Users/vm/anaconda/lib/python3.5/site-packages/pyudev/_ctypeslib/libudev.py", line 284, in load_udev_library
raise ImportError('No library named udev')
ImportError: No library named udev
Exception ignored in: <bound method Context.__del__ of <pyudev.core.Context object at 0x1013aba58>>
Traceback (most recent call last):
File "/Users/vm/anaconda/lib/python3.5/site-packages/pyudev/core.py", line 69, in __del__
self._libudev.udev_unref(self)
AttributeError: 'Context' object has no attribute '_libudev'
hints?