Failure to install nnpy and nanomsg libraries for Raspberry Pi hardware setup

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

Getting the same problem here on a new installation of Rasbian (RPi 4B)
hey im facing the same issue , did you guys find a soulution ?
Working on a RPi 4B on latest RaspberrypiOS install, encountering the same failed libraries.
Hi Ashley,
Could you please tell me which version of the Raspberry Pi OS are you using?

Sign in to comment.

Answers (1)

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

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
Hi ,
May you please execute the following command in raspberry pi terminal and post the output here-
$ lsb_release -a
Thanks
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!
Please reimage the raspberry pi with buster or bullseye 32 bit image in order to use MATLAB Support package for raspberry pi
jesus christ!
It would really very nice to inform the user which Raspberry Pi OS versions are actually tested and okay for using before I need to try everything out.
Thank you guys.
Thank you for the reply. It worked and I'm able to download the nanomsg and nnpy.
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?????
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
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
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?

Sign in to comment.

Categories

Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange

Products

Release

R2023b

Asked:

on 31 Jan 2024

Commented:

on 9 Oct 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!