-
Notifications
You must be signed in to change notification settings - Fork 85
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
Install on Raspberry OS lite is missing dependency for Numpy #9
Comments
Can you let me know how did you install cbpi Run the follwing command to print all installed python components:
|
CBPI V4.0
`pi@cbpi:~ $ pip3 list aiohttp 3.7.3 |
same error for me when I tried to upgrade from version 4.0.0.12 to 4.0.0.13 using "sudo python3 -m pip install cbpi --force-reinstall". After install dependencies, WebGUI can not load, returning error: |
Are using a virtual environment? https://app.gitbook.com/@craftbeerpi/s/craftbeerpi4/ Can you post the complete error message. which command raised this error? |
Same her when I do it in a virtual environment on my pi. It's running on my ubuntu container w/o issues. I installed the version from GIThub. Basically the same message as above.
A re-install via pip3 does not help, but as already describe above: is solving the issue with the setup. But starting it causes other issues. I will do that better on a separate sd-card on my pi an dnot in aprallel to cbpi3 :-) |
I retried it this morning and it seems to me that this is related to rights. I can set up a venv and run the installation within the venv (w/o sudo). Everything seems to install, but some packages cannot be build. if you re-run this later with sudo, the missing packages can be build. Setup is working but then I get the numpy error. I can uninstall numpy via pip, but can't install python3-numpy from the virtual environment w/o sudo. If I install it with sudo I get the information that it is already installed. But If I try to start cbpi from the venv I get the error message that numpy is missing. If I install it w/o venv, it seem to work. I could also add my plugin for the pt100/pt1000. No error messages, but it does not load. Anyway, I will dig into this with a separate SD card as I am currently running a fermentation and I do not want to screw up the existing cbpi3 installation. |
I have the same problem.
|
Mine is solved. I had to uninstall and remove all files in the folder I've used to install cbpi. |
If I install it from github, folders and databse are not created via cbpi setup (4.0.0.14) However, everything is installing fine via pip3 install cbpi as package (V4.0.0.13). The setup process is installing the folders and the database and I can start cbpi. When I now remove cbpi and the cbpi4-ui package, I can install the github version where the setup process is using the existing foldaers and database. Afterwards cbpi 4.0.0.14 can be started. Not sure if this is related to the latest update were some folder setting where modified. It is now running on my pi. However, so far I did not manage it to run in a virtual environment on my pi I did not notice this behavior on earlier versions on my ubuntu containers running on my NAS. Here I could also install cbpi in venv. |
I created an initial PR #74 to avoid this kind of problems. It does not completely solves the problem (since numpy is not a direct dependency for this project - for that we needed pinned dependency tree which is also possible with tools like poetry - good article on that here), but is a step towards better dependency management here. |
Improve CI build and fix docker build issue
Got this error:
Fix was to install the missing dependency: libatlas-base-dev
or to reinstall Numpy using:
pip3 uninstall numpy # remove previously installed version
apt install python3-numpy
The text was updated successfully, but these errors were encountered: