My flotilla mega treasure chest arrived in the post today, and I can’t wait to get it working!
My problem is that when I plug the dock into the raspberry pi and launch rockpool, it ‘searches for flotilla’ until the green bar goes all the way across the screen which takes quite a while, then I press the connect button and it just says ‘connecting’ and won’t go any further. The raspberry pi is connected to the internet through Ethernet so there shouldn’t be a problem there, and all three lights on the dock light up except the talking one which pulses slowly. What could I be doing wrong?
Also, there don’t seem to be any recipes or cookbooks in the box, just the papercraft and the cases for the projects. Is it supposed to be like this or am I missing something?
Thanks for any help.
Check out the Getting Started Guide to make sure you are clear on what the different parts that make flotilla are here:
http://forums.pimoroni.com/t/flotilla-unofficial-getting-started-guide/1498/6
Could be the daemon failing to start though, what happens when you type the following in the terminal, right after boot:
/usr/bin/flotilla -d
Just tried that - I’ve attached a picture of what comes up.
then you are missing some dependencies. run:
curl https://get.pimoroni.com/rockpool | bash
check the output of the script as it may reveal why the required boost library was not correctly installed the first time around.
Just tried that - it says bash: get.pimoroni.com/rockpool: no such file or directory
my mistake, I mistyped the instruction, see edited version above.
I looked through the script and it kept saying ‘could not install python 2 libraries’ then ‘could not install python 3 libraries’. It didn’t give any more information than this, it just said if problem persists go to forums.pimoroni.com for support.
Maybe I missed something so here is the entire script.
Sorry for the long post…
curl https://get.pimoroni.com/rockpool
#!/bin/bash
productname=“Rockpool” # the name of the product to install
scriptname=“rockpool” # the name of this script
customcmd=“yes” # whether to execute commands specified before exit
jessiesupport=“yes” # whether Jessie is supported or not
wheezysupport=“yes” # whether Wheezy is supported or not
piplibname=“na” # the name of the lib in pip repo
pip2support=“na” # whether python2 is supported or not
pip3support=“na” # whether python3 is supported or not
localdir=“flotilla” # the name of the dir for copy of examples
gitreponame=“flotilla-offline” # the name of the git project repo
gitrepoclone=“yes” # whether the git repo is to be cloned locally
examplesdir=“na” # subdirectory of examples in repo
i2creq=“no” # whether i2c is required or not
spireq=“no” # whether spi is required or not
pkgdeplist=( “git” ) # list of all the mandatory apt dependencies
moreaptdep=() # list of all the additional apt dependencies
morepipdep=() # list of all the additional pip dependencies
success () {
echo “$(tput setaf 2)1(tput sgr0)”
}
warning () {
echo “$(tput setaf 1)1(tput sgr0)”
}
confirm () {
if [ “$FORCE” == ‘-y’ ]; then
true
else
read -r -p "1 [y/N] " response < /dev/tty
response={response,}
if [[ response =~ ^(yes|y) ]]; then
true
else
false
fi
fi
}
pip_chk_pip3 () {
if [ -e /usr/bin/pip3 ]; then
PIP3_BIN="pip3"
else
PIP3_BIN="pip-3.2"
fi
}
pip_pkg_req3 () {
pip_chk_pip3
PIP_CHK=$($PIP3_BIN search $1 | grep INSTALLED)
if [ "" == "$PIP_CHK" ]; then
true
else
false
fi
}
pip_pkg_req () {
PIP_CHK=$(pip search $1 | grep INSTALLED)
if [ "" == "$PIP_CHK" ]; then
true
else
false
fi
}
apt_pkg_req () {
APT_CHK=(dpkg-query -W --showformat='{Status}\n’ $1|grep “install ok installed”)
if [ "" == "$APT_CHK" ]; then
true
else
false
fi
}
apt_pkg_install () {
\curl -sS get.pimoroni.com/package | bash -s - $1 || { warning “Sorry, Apt failed to install $1, I can’t continue!” && exit; }
}
raspbian_check () {
IS_RASPBIAN=$(cat /etc/*-release | grep “Raspbian”)
if [[ "" == $IS_RASPBIAN ]]; then
false
else
true
fi
}
raspbian_old () {
DIST_CHK=$(cat /etc/os-release | grep “wheezy”)
if [ "" == "$DIST_CHK" ];then
false
else
true
fi
}
if ! raspbian_check; then
warning "Warning!"
echo "Please only run this script on Raspbian on your Raspberry Pi"
exit 1
fi
if [ $wheezysupport == “no” ]; then
if raspbian_old; then
echo ""
warning "— Warning —"
echo ""
echo "The $productname installer"
echo "does not currently work on Raspbian Wheezy."
echo "Check https://github.com/pimoroni/$gitreponame"
echo "for additional information and support"
echo ""
exit 1
fi
fi
echo ""
echo "This script will install everything needed to use"
echo "$productname"
echo ""
warning "— Warning —"
echo ""
echo "Always be careful when running scripts and commands"
echo "copied from the internet. Ensure they are from a"
echo "trusted source."
echo ""
echo "If you want to see what this script does before"
echo "running it, you should run:"
echo " \curl -sS get.pimoroni.com/$scriptname"
echo “”
FORCE=$1
if confirm “Do you wish to continue?”; then
echo ""
echo "Checking hardware requirements..."
if [ $spireq == "yes" ]; then
echo ""
if confirm "Hardware requires SPI, enable now?"; then
\curl -sS get.pimoroni.com/spi | bash -s - "-y"
fi
fi
if [ $i2creq == "yes" ]; then
echo ""
if confirm "Hardware requires I2C, enable now?"; then
\curl -sS get.pimoroni.com/i2c | bash -s - "-y"
fi
fi
echo ""
echo "Checking install requirements..."
updatedb=false
for pkgdep in ${pkgdeplist[@]}
do if apt_pkg_req "$pkgdep" ; then
updatedb=true
fi
done
for morepkgdep in ${moreaptdep[@]}
do if apt_pkg_req "$morepkgdep" ; then
updatedb=true
fi
done
if $updatedb ; then
echo ""
echo "Updating package indexes..."
sudo apt-get update
echo ""
echo "Installing hardware requirements..."
for pkgdep in ${pkgdeplist[@]}
do echo "Checking for dependencies..."
if apt_pkg_req "$pkgdep" ; then
apt_pkg_install "$pkgdep"
fi
done
else
success "Found!"
fi
if [ $piplibname != "na" ]; then
if [ $pip2support == "yes" ]; then
echo ""
echo "Checking for Python 2 library..."
if pip_pkg_req "$piplibname"; then
echo "Installing $productname library for Python 2..."
echo ""
if ! sudo pip install $piplibname; then
warning "Python 2 library install failed!"
echo "If problems persist, visit forums.pimoroni.com for support"
exit
fi
success "Done!"
else
success "Found!"
echo ""
if confirm "Python 2 module found. Reinstall/Update?"; then
if ! sudo pip install $piplibname -I; then
warning "Python 2 library install failed!"
echo "If problems persist, visit forums.pimoroni.com for support"
exit
fi
success "Done!"
fi
fi
else
echo "Note: $productname currently supports Python 3 only."
fi
if [ $pip3support == "yes" ]; then
echo ""
echo "Checking for Python 3 library..."
if pip_pkg_req3 "$piplibname"; then
echo "Installing $productname library for Python 3..."
echo ""
pip_chk_pip3
if ! sudo $PIP3_BIN install $piplibname; then
warning "Python 3 library install failed!"
echo "If problems persist, visit forums.pimoroni.com for support"
exit
fi
else
success "Found!"
echo ""
if confirm "Python 3 module found. Reinstall/Update?"; then
pip_chk_pip3
if ! sudo $PIP3_BIN install $piplibname -I; then
warning "Python 3 library install failed!"
exit
fi
fi
fi
else
echo "Note: $productname currently supports Python 2 only."
fi
fi
if [ $EUID -ne 0 ]; then
USER_HOME=$(getent passwd $USER | cut -d: -f6)
else
USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6)
fi
WORKING_DIR=$USER_HOME/Pimoroni
if ! [ -d $WORKING_DIR ]; then
mkdir $WORKING_DIR
fi
if [ examplesdir != "na" ]; then
if ! [ -d $WORKING_DIR/$localdir ]; then
echo ""
echo "Downloading $productname examples..."
export TMPDIR=`mktemp -d /tmp/pimoroni.XXXXXX`
cd $TMPDIR
git clone https://github.com/pimoroni/$gitreponame
cd $WORKING_DIR
mkdir $localdir
cp -R $TMPDIR/$examplesdir/* $WORKING_DIR/$localdir/
rm -rf $TMPDIR
success "Examples copied to $WORKING_DIR/$localdir/"
else
echo ""
if confirm "Examples already exist, shall I replace them?"; then
mv $WORKING_DIR/$localdir $WORKING_DIR/$localdir-backup
echo "Updating $productname examples..."
export TMPDIR=`mktemp -d /tmp/pimoroni.XXXXXX`
cd $TMPDIR
git clone https://github.com/pimoroni/$gitreponame
cd $WORKING_DIR
mkdir $localdir
cp -R $TMPDIR/$examplesdir/* $WORKING_DIR/$localdir/
rm -rf $TMPDIR
warning "I backed up the examples to $localdir-backup, just in case you've changed anything!"
success "Examples copied to $WORKING_DIR/$localdir/"
fi
fi
fi
echo ""
echo "Checking additional software requirements..."
moredepreq=false
for moredep in ${moreaptdep[@]}
do if apt_pkg_req "$moredep" ; then
moredepreq=true
fi
done
for moredep in ${morepipdep[@]}
do if pip_pkg_req "$moredep" ; then
moredepreq=true
fi
done
if $moredepreq ; then
echo ""
echo "Some $productname examples/plugins"
echo "require additional software and/or modules"
if confirm "Would you like to install them now?"; then
for moredep in ${moreaptdep[@]}
do if apt_pkg_req "$moredep" ; then
apt_pkg_install "$moredep"
fi
done
for moredep in ${morepipdep[@]}
do if pip_pkg_req "$moredep" ; then
sudo pip install "$moredep"
sudo $PIP3_BIN install "$moredep"
fi
done
fi
else
success "Found!"
fi
if [ $gitrepoclone == "yes" ]; then
if ! [ -d $WORKING_DIR/$localdir ]; then
mkdir $WORKING_DIR/$localdir
fi
cd $WORKING_DIR/$localdir
if ! [ -d $WORKING_DIR/$localdir/$gitreponame ]; then
echo ""
echo "Cloning Github repo locally..."
git clone https://github.com/pimoroni/$gitreponame
else
cd $WORKING_DIR/$localdir/$gitreponame
echo ""
echo "Github repo already present. Updating..."
git pull
fi
fi
if [ $customcmd == "yes" ]; then
echo ""
echo "Finalising Install..."
cd $WORKING_DIR/$localdir/$gitreponame
sudo bash ./install
echo ""
else
echo ""
success "All done!"
echo ""
echo "Enjoy your new $productname!"
if [ $pip3support == "no" ]; then
echo "Note: $productname currently supports Python 2 only."
fi
if [ $pip2support == "no" ]; then
echo "Note: $productname currently supports Python 3 only."
fi
echo ""
fi
else
echo ""
echo "Aborting…"
echo ""
fi
#based on template 1601172020
Something is definitely up, there are no python components to be installed and you shouldn’t see those messages.
What OS is this on? If unsure you can type the following in the terminal:
cat /etc/os-release
also, what happens if you:
sudo apt-get update
sudo apt-get install libboost-system1.50.0
sudo apt-get install libboost-filesystem1.50.0
sudo apt-get install libboost-program-options1.50.0
Sorry I didn’t reply, for some reason I didn’t get a notification so I only just thought to check this thread. The OS is Raspbian Jessie, I checked. It says PRETTY NAME= Raspbian GNU/Linux 8 (Jessie).
I have attached pictures of what came up when I typed those lines above.
Please retry:
/usr/bin/flotilla -d
You may get other error messages but it shouldn’t be about these particular dependencies at this stage.
Thanks so much for that, rock pool seems to work now! I’m about to test it out now…
yes, that looks hopeful… the message you see in your last screenshot means there is already another instance of the daemon running, which would be expected!
Let us know how you get on!