Tag: RaspberryPi

  • Pillow Install Fails – Python 3.5.2

    Hi everyone, I ran into a bit of an issue trying to install Pillow on Raspbian with Python 3.5.2. The full error is below, but the solution was simply to install the following: sudo apt-get install libjpeg8-dev sudo pip3.5 install pillow sudo pip3.5 install pillow Collecting pillow Using cached Pillow-4.3.0.tar.gz Requirement already satisfied: olefile in…

  • Updating to Python 3.5.1 on RaspberryPi

    Hi everyone, Just a quick post on how to update to Python 3.5.1 the normal upgrade process isn’t working for you: cd ~ wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz tar -zxvf Python-3.5.1.tgz cd Python-3.5.1 ./configure && make && sudo make install You may need to restart once this is complete. Run the following to confirm that the version is…

  • Check Tensorflow Version – Raspbian

    Hey everyone, Just a quick post on how to check the Tensorflow version on Raspbian with a one-liner (assumes Python 3.x): python3 -c ‘import tensorflow as tf; print(tf.__version__)’ Check out this Stackoverflow post for more info: https://stackoverflow.com/a/38549357/522859

  • UnicodeDecodeError on RaspberryPi – Python

    Hey everyone, I ran into the following error while trying to read serial input on a Raspberry Pi hooked up to an Arduino via USB: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0za8 in position 0: invalid start byte The solution was as follows: #buffer_string = ser.read().decode(‘utf-8’) buffer_string = ser.read().decode(‘utf-8′, errors=’replace’) Thanks to the following link:…

  • Arduino GPS – Ublox NEO-M8N Flight Controller GPS w/Protective Shell for PIX PX4 Pixhawk

    Hey everyone, I recently purchased this GPS unit on ebay: http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItemVersion&item=272492032614&view=all&tid=1865626885017 Unfortunately, I didn’t do a lot of research before getting it and had a bit of trouble finding any spec sheets or documentation. Just in case anyone else has the same problem I’ve listed out everything I needed to get it running below. This…

  • Start a Script on Startup – Raspberry Pi

    Hey guys, Just thought I’d leave a couple of links to some guides I came across for setting up boot scripts on a raspberry pi. Quick guide on how to get them running: http://www.instructables.com/id/Raspberry-Pi-Launch-Python-script-on-startup/ How to delay the boot process until the network is available: https://raspberrypi.stackexchange.com/a/45774

  • Raspberry PI Keeps Booting into the Login Screen

    Hey everyone, A bit of weird issue today – my RaspberryPi kept reverting to the login screen. To get around this, open command prompt from the login screen (ctrl + f1) and then run sudo rm ~/.Xauthority Reboot and then it should work normally.  

  • Exit Raspberry Pi Camera Preview

    Hey everyone, I ran into a bit of a weird issue with a raspberry pi camera preview today. After starting the preview I hit an uncaught exception which meant that exitPreview was never called. To get around this use the terminal hotkey and kill the python process. Note that while you won’t be able to…

Create a website or blog at WordPress.com