Pip packages not installing on BlueOS 1.4.2 Stable

Hi folks,

I am trying to install various python3 packages on the BlueOS(1.4.2) running raspberry pi(locally) via red-pill.
Some packages(like numpy, pyserial) install via pip easily (i.e. piwheels), but some packages (pymavlink, flask, etc) does not and seem to show timeout errors. RPi doesn’t seem to connect to piwheel.org properly.

I am sure that,

  1. My internet is not an issue, as other servers such as git, raspberryPi archives, etc. seem to work perfectly fine.
  2. It is not an issue with my region, as raspberry Pis with normal Raspbian are able to download all these packages easily.

I have tried increasing the timeout for pip install, but to no avail.

At the end, I installed wheel files from another Pi, and transferred on BlueOS-Pi via USB Drive, but I need to fix this issue.

Please help!

Thankyou.

P.S.: I know that the correct way to work in BlueOS is to run dockerized Extensions (and I will), but first I need to make sure that my system works in the desired way, hence local deployment in Pi.

Hi @VShiva1 -
We recommend against your approach, because if you update BlueOS versions, all the installed packages in that root account would be cleared!
It’s really best to start your project from the get-go with a docker image, as dependencies are addressed early with the dockerfile built from the github action… You could miss a dependency with your approach, if it was already a part of the environment!

As for your specific issue, it seems very strange that those pip installs don’t work, but do on other Pi hardware …

Hi @tony-white ,

I understand your concern, and I will discuss this with my team members and we will try to shift to docker asap.

Thankyou, and regards.

Can you think of any reason why such installation issues might be happening?

Any BlueOS containerization proxy, firewall issues?

Pymavlink installed for me just fine!
I had to do a sudo apt-get update --fix-missing first - try that?

Nope, tried that. I also tried changing the DNS server but no use.

Well since it installed just fine for me, I suspect something about your network setup? Have you tried just pymavlink via pip3?

Yes, I have. The issue is when pip connects to piwheels server. It connects but too slow, hence timeout.

Update

I still don’t know what the issue was, but it randomly worked and I could install all the required packages in one go.
Regardless of everything, Thankyou very much.

1 Like