Not sure if this is an issue specifically related to my setup or not, but figured I would post here in case it helps anyone else. I am running a Pi 2 and had been running a very old build of the OG BrewPi for the past few years. It recently started to fail when loading the web page, so I figured a reinstall was in order, which is how I ran across BrewPi Remix.
I followed the instructions on the web site, but when the installation was finished, the script would never start. Clicking the Start Script button did nothing. I could manually start the script using my Pi account, but obviously didn't want to have to do that every time I reboot the thing. I kept seeing errors in the logs regarding the numpy Python package and tried to uninstall/reinstall it and other packages I saw recommended multiple times using both apt and pip3 to no avail. Here is the error message.
Dec 5 15:40:50 brewpi brewpi[26097]: Traceback (most recent call last):
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/core/__init__.py", line 24, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: from . import multiarray
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/core/multiarray.py", line 10, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: from . import overrides
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/core/overrides.py", line 8, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: from numpy.core._multiarray_umath import (
Dec 5 15:40:50 brewpi brewpi[26097]: ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory
Dec 5 15:40:50 brewpi brewpi[26097]: During handling of the above exception, another exception occurred:
Dec 5 15:40:50 brewpi brewpi[26097]: Traceback (most recent call last):
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/__init__.py", line 130, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: from numpy.__config__ import show as show_config
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/__config__.py", line 4, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: from numpy.core._multiarray_umath import (
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/core/__init__.py", line 50, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: raise ImportError(msg)
Dec 5 15:40:50 brewpi brewpi[26097]: ImportError:
Dec 5 15:40:50 brewpi brewpi[26097]: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Dec 5 15:40:50 brewpi brewpi[26097]: Importing the numpy C-extensions failed. This error can happen for
Dec 5 15:40:50 brewpi brewpi[26097]: many reasons, often due to issues with your setup or how NumPy was
Dec 5 15:40:50 brewpi brewpi[26097]: installed.
Dec 5 15:40:50 brewpi brewpi[26097]: We have compiled some common reasons and troubleshooting tips at:
Dec 5 15:40:50 brewpi brewpi[26097]:
Troubleshooting — NumPy v2.0.dev0 Manual
Dec 5 15:40:50 brewpi brewpi[26097]: Please note and check the following:
Dec 5 15:40:50 brewpi brewpi[26097]: * The Python version is: Python3.9 from "/home/brewpi/venv/bin/python3"
Dec 5 15:40:50 brewpi brewpi[26097]: * The NumPy version is: "1.26.2"
Dec 5 15:40:50 brewpi brewpi[26097]: and make sure that they are the versions you expect.
Dec 5 15:40:50 brewpi brewpi[26097]: Please carefully study the documentation linked above for further help.
Dec 5 15:40:50 brewpi brewpi[26097]: Original error was: libopenblas.so.0: cannot open shared object file: No such file or directory
Dec 5 15:40:50 brewpi brewpi[26097]: The above exception was the direct cause of the following exception:
Dec 5 15:40:50 brewpi brewpi[26097]: Traceback (most recent call last):
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/brewpi.py", line 61, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: import brewpiJson
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/brewpiJson.py", line 37, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: import Tilt
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/Tilt.py", line 38, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: import numpy
Dec 5 15:40:50 brewpi brewpi[26097]: File "/home/brewpi/venv/lib/python3.9/site-packages/numpy/__init__.py", line 135, in <module>
Dec 5 15:40:50 brewpi brewpi[26097]: raise ImportError(msg) from e
Dec 5 15:40:50 brewpi brewpi[26097]: ImportError: Error importing numpy: you should not try to import numpy from
Dec 5 15:40:50 brewpi brewpi[26097]: its source directory; please exit the numpy source tree, and relaunch
Dec 5 15:40:50 brewpi brewpi[26097]: your python interpreter from there.
I tried reinstalling everything from scratch, twice, and ended up with this result both times. I did try running all of the doXXX.sh scripts from the git repository to fix perms and dependencies, but it would never fix it. I am not sure which of these things I did on the 3rd try ultimately resolved it, or if it was a combination of the 2, but instead of running the curl command:
curl -L install.brewpiremix.com | sudo bash
I instead ran the command listed in the git documentation:
curl -L raw.githubusercontent.com/brewpi-remix/brewpi-tools-rmx/master/bootstrap.sh | sudo bash
That did seem to run through all of the scripts and install things I didn't notice when running the installer in the previous 2 attempts, so perhaps the shortened curl URL is linking to an older install script? Regardless, I was still getting the same error with numpy and the script wouldn't start, but this time, I installed one of the packages that I saw recommended before (that I had installed on the previous 2 attempts as well) and IT WORKED!! Here is the package that ended up fixing it for me:
sudo apt-get install libopenblas-dev
Sorry for the novel, just wanted to be as detailed as possible so that others don't bang their head against the wall for 2 days like I did.