I just pushed a new version of rshell to PyPi, which adds 3 things:
1 - it should only try to use pyudev when running under linux
2 - I added a --version to report the current version
3 - I added a check in setup.py to verify that version 3.4 or newer of python is being used.
writing files to /sd goes wrong
-
- Posts: 16
- Joined: Tue Feb 02, 2016 11:20 am
Re: writing files to /sd goes wrong
Not working here on python 3.5dhylands wrote:I just pushed a new version of rshell to PyPi, which adds 3 things:
Code: Select all
$ python --version
Python 3.5.0 :: Anaconda 2.4.0 (x86_64)
Code: Select all
$ sudo -H pip install --upgrade rshell
Collecting rshell
Downloading rshell-0.0.2.tar.gz
Requirement already up-to-date: pyserial in /Users/vm/anaconda/lib/python3.5/site-packages (from rshell)
Requirement already up-to-date: pyudev>=0.16 in /Users/vm/anaconda/lib/python3.5/site-packages (from rshell)
Requirement already up-to-date: six in /Users/vm/anaconda/lib/python3.5/site-packages (from pyudev>=0.16->rshell)
Building wheels for collected packages: rshell
Running setup.py bdist_wheel for rshell ... done
Stored in directory: /var/root/Library/Caches/pip/wheels/08/27/2e/fa51a3e32e27983342d8a6e5f80b79e23fc3ff41ceb602dcc7
Successfully built rshell
Installing collected packages: rshell
Found existing installation: rshell 0.0.1
Uninstalling rshell-0.0.1:
Successfully uninstalled rshell-0.0.1
Successfully installed rshell-0.0.1
pyboard vm$
pyboard vm$ rshell
Traceback (most recent call last):
File "/Users/vm/anaconda/bin/rshell", line 7, in <module>
from rshell.command_line import main
File "/Users/vm/Desktop/pyboard/rshell.py", line 14, in <module>
from rshell.getch import getch
ImportError: No module named 'rshell.getch'; 'rshell' is not a package
Code: Select all
$ rshell
Connecting to /dev/cu.usbmodem262441 ...
Welcome to rshell. Use Control-D to exit.
/Users/vm/Desktop/pyboard>
Re: writing files to /sd goes wrong
ok - there's obviously something I don't understand about imports then (not surprising).
It did work on my Mac Mini (running OSX Yosemite 10.10.5) :
So if anybody has any insight into the problem I'd love to hear about it.
It did work on my Mac Mini (running OSX Yosemite 10.10.5) :
Code: Select all
500 >python3 --version
Python 3.4.3
501 >sudo pip3 install --upgrade rshell
Password:
The directory '/Users/dhylands/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 7.0.1, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The directory '/Users/dhylands/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting rshell
Downloading rshell-0.0.2.tar.gz
Collecting pyserial (from rshell)
Downloading pyserial-3.0.1.tar.gz (134kB)
100% |████████████████████████████████| 135kB 1.2MB/s
Collecting pyudev>=0.16 (from rshell)
Downloading pyudev-0.19.0.tar.gz (96kB)
100% |████████████████████████████████| 98kB 1.8MB/s
Collecting six (from pyudev>=0.16->rshell)
Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: pyserial, six, pyudev, rshell
Found existing installation: pyserial 2.7
Uninstalling pyserial-2.7:
Successfully uninstalled pyserial-2.7
Running setup.py install for pyserial
Running setup.py install for pyudev
Found existing installation: rshell 0.0.1
Uninstalling rshell-0.0.1:
Successfully uninstalled rshell-0.0.1
Running setup.py install for rshell
Successfully installed pyserial-3.0.1 pyudev-0.19.0 rshell-0.0.2 six-1.10.0
dhylands@dave-mini ~
502 >rshell --version
0.0.2
Re: writing files to /sd goes wrong
I found some other improvements that I had for OSX that I added and released as 0.0.4 (0.0.3 had a mistake).
This should fix up the color prompt, and I have it saving and restoring the termios settings.
I also put a try block around the imports to print out the sys.path if the import fails, which may help us to figure out why its not working on your system.
I upgraded my python to 3.5.1 and it still seems to be working fine.
This should fix up the color prompt, and I have it saving and restoring the termios settings.
I also put a try block around the imports to print out the sys.path if the import fails, which may help us to figure out why its not working on your system.
I upgraded my python to 3.5.1 and it still seems to be working fine.
-
- Posts: 16
- Joined: Tue Feb 02, 2016 11:20 am
Re: writing files to /sd goes wrong
it seems the pip install works fine now.dhylands wrote:I found some other improvements that I had for OSX that I added and released as 0.0.4 (0.0.3 had a mistake)
Code: Select all
$ sudo pip install --upgrade rshell
Password:
Collecting rshell
Downloading rshell-0.0.4.tar.gz
Requirement already up-to-date: pyserial in ./anaconda/lib/python3.5/site-packages (from rshell)
Requirement already up-to-date: pyudev>=0.16 in ./anaconda/lib/python3.5/site-packages (from rshell)
Requirement already up-to-date: six in ./anaconda/lib/python3.5/site-packages (from pyudev>=0.16->rshell)
Installing collected packages: rshell
Found existing installation: rshell 0.0.2
Uninstalling rshell-0.0.2:
Successfully uninstalled rshell-0.0.2
Running setup.py install for rshell ... done
Successfully installed rshell-0.0.1
~ vm$ rshell
Connecting to /dev/cu.usbmodem262441 ...
Welcome to rshell. Use Control-D to exit.
e.g is says
Code: Select all
Successfully installed rshell-0.0.1
Code: Select all
$ rshell --version
0.0.4