Failure to install nnpy and nanomsg libraries for Raspberry Pi hardware setup
Show older comments
Hello,
I'm trying to setup my raspberry pi via matlab's raspberry pi hardware support package. However, I'm unable to install the py-nanomsg and the nnpy libraries either through the setup prompt or via the terminal in the raspberry pi OS. I'm wondering if anyone has encountered similar issue? It seems like matlab would not establish proper connection with the board without these two libraries.

5 Comments
Olivier Fournier
on 4 Feb 2024
Getting the same problem here on a new installation of Rasbian (RPi 4B)
david
on 11 Feb 2024
hey im facing the same issue , did you guys find a soulution ?
Will
on 12 Feb 2024
Working on a RPi 4B on latest RaspberrypiOS install, encountering the same failed libraries.
Suman
on 13 Feb 2024
Hi Ashley,
Could you please tell me which version of the Raspberry Pi OS are you using?
洪宇
on 28 Mar 2024
any idea for this?
Answers (1)
MathWorks MATLAB Hardware Team
on 16 Feb 2024
Hi,
Could you verify the operating system installed on your device? You can obtain this information by running the following command in the Raspberry Pi's terminal:
$ lsb_release -a
If the result displays "Bookworm," please note that the MATLAB Support Package for Raspberry Pi Hardware currently does not support this operating system.
However, if "Buster" or "Bullseye" appears, I suggest repeat the hardware set up steps after restarting your Raspberry Pi.
For any additional help, please don't hesitate to reach out to us at:
Thanks,
MATLAB Hardware Team
MathWorks
10 Comments
Luciano Nascimento
on 25 Feb 2024
I am facing the same problem but when installing the userland library. I'm using the Raspberry Pi 4 and it doesn't accept the OS customized by MATHWORKS, so when doing the customization installations this error occurs
MathWorks MATLAB Hardware Team
on 27 Feb 2024
Hi ,
May you please execute the following command in raspberry pi terminal and post the output here-
$ lsb_release -a
Thanks
Steve Houghton
on 12 Mar 2024
I have this issue too and can confirm when I ran the lsb_release -a cmd it did indeed report Bookworm - so that would seem to explain it. How can I get an alternate version that does work? Sorry if that's a daft question, but I don't know the answer!
MathWorks MATLAB Hardware Team
on 14 Mar 2024
Please reimage the raspberry pi with buster or bullseye 32 bit image in order to use MATLAB Support package for raspberry pi
Vikash
on 4 Dec 2024
Thank you for the reply. It worked and I'm able to download the nanomsg and nnpy.
Scott Nortman
on 11 May 2025
I second that... I spent A WEEK trying to figure out why I could not get anything to work... WHERE IS THE REQUIRED RPI OS VERSION DOCUMENTED?????
Steve
on 19 Jun 2025
Same problem here,
How come that "you have to use an outdated OS version" is not documented?
come on Mathworks, you used to be professional about such things
Jarkko
on 1 Jul 2025
Same problem here that compiling fail due using RPi Bookworm release. If using function raspberrypi('IP_addr','Login','Password'); can compile and run project but you cannot build stand alone GUI, since this is not yet supported for GUI code generation. For stand alone GUI should use raspi() but this does not support Bookworm release
Raimundo
on 9 Oct 2025
I re-flashed my OS from Bookworm to Bullseye hoping this would work but I am still geting the same error. py-nanomsg fails to install. Any help on this?
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!