-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add nn~ build script for Linux #51
Conversation
Hi there, I've been following the instructions for the linux build as the raspberrypi.sh was giving me errors. It seems like I'm close but now I'm getting the following error.
Any advice on how to fix this as it seems connected to the libtorch.so? I'm running a Pi 5 with bookworm. |
Hi,
|
The install script uses a hardcoded path to the lib, can you make sure there is a file there ? |
There's not and for some reason I can't install Python3.9 + torch site-packages there.... |
So digging further. It seems to be an issue with Raspberry Pi 5 and 64-bit Bookworm OS. Bookworm comes with Python 3.11 and it does not let me downgrade to Python 3.9 systemwide, which is why the script cannot access the path (/.local/lib/python3.9/site-packages/torch/) as it does not exist. I've been trying to compile it using a venv but failed thus far. Is there a possibility to upgrade the nn~ compiler to python3.9? On another note, I bought a Pi4 and ran it with legacy raspbian bullseye. I was able to compile the file but whenever I create the object in PureData the program crashes.... |
raspberrypi.sh runs into errors with Torch (e.g. searching for Torch cmake configuration files). This script uses libtorch in a temp folder to build nn~ for Linux.