Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional steps required #1

Open
tmccoy00 opened this issue Jul 17, 2016 · 5 comments
Open

Additional steps required #1

tmccoy00 opened this issue Jul 17, 2016 · 5 comments

Comments

@tmccoy00
Copy link

I followed this tutorial and had a number of issues along the way that required additional package installation that are not listed in the main tutorial steps - which will frustrate many users trying to get this going from scratch!

Part 1. Initial State Step 2: Install the ISStreamer

Following the detailed manual steps indicated I didn't have the correct version of pip and thus ISstreamer didn't install with the automatic script.

The key commands to get it working are

$ sudo apt-get install python-setuptools
$ sudo easy_install pip
$ sudo pip install ISStreamer

Part 2. psutil

While the pio initial script seemed to work, an error regarding python.h not found indicates the python development libraries are not install. Thus again, additional commands are needed from the more detailed steps.

https://github.com/giampaolo/psutil/blob/master/INSTALL.rst

$ sudo apt-get install gcc python-dev
$ pip install psutil

...to which the result of the tutorial instructions can then be followed.

@jrbail01
Copy link
Contributor

What version of Raspbian (or other OS) did you run this on? Raspbian Jessie should have pip and the python development tools installed by default.

I will add these additional steps as tips in the tutorial. Thank you for posting this!!

@tmccoy00
Copy link
Author

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.1.18-v7+ #846 SMP Thu Feb 25 14:22:53 GMT 2016 armv7l GNU/Linux
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

@jrbail01
Copy link
Contributor

When you first ran the tutorial, did you run the script:
$ \curl -sSL https://get.initialstate.com/python -o - | sudo bash
?
I ask because that script should have handled installing python-setuptools, pip, easy_install, making sure pip is the right version, etc. Check the contents of https://get.initialstate.com/python to see where it should have installed everything you had to install manually.

@tmccoy00
Copy link
Author

Yes, but it generated errors and didn't fully complete or install ISstreamer properly which I worked out when trying to run the streamer example.

@jmaybe
Copy link

jmaybe commented Aug 2, 2016

Similar to above problems, but corrected with a slightly different solution.

Just set up a new pi 3 with Jessie and ran into psutil problem; it failed to properly install with pip. (I did not copy the error before correcting the problem...)
In order to make it install properly I ran the following:

sudo apt-get install build-essential python-dev python-pip

then

sudo pip install psutil

Corrected the problem and was up-and-running in no time.

R/
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants