Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Blinka Exiting due to error: Sorry.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Blinka Exiting due to error: Sorry.

by andrzejm on Wed Apr 07, 2021 8:40 am

Hi,
I am trying to build a docker image with python script controlling adafruit's Mini PiTFT display. This means I need to use blinka python module.
In Docerfile I have following entries:
ARG TERM=xterm-256color
ENV TERM=$TERM

RUN pip install --upgrade pip

RUN pip3 install --upgrade adafruit-python-shell
RUN wget https://raw.githubusercontent.com/adafr ... -blinka.py
RUN python3 raspi-blinka.py

as soon as last RUN command is executed I get following error when building he container:
Removing intermediate container 166beb51fff3
---> a71eb11d5c05
Step 14/20 : RUN python3 raspi-blinka.py
---> Running in 24528be0edf6

This script configures your
Raspberry Pi and installs Blinka

RASPBERRY_PI_4B detected.

Blinka Exiting due to error: Sorry. This script currently only runs on Raspberry Pi OS.
The command '/bin/sh -c python3 raspi-blinka.py' returned a non-zero code: 1

Could you please advise how to proceed?
Br,
Andrzej

andrzejm
 
Posts: 2
Joined: Wed Apr 07, 2021 8:36 am

Re: Blinka Exiting due to error: Sorry.

by MakerMelissa on Wed Apr 07, 2021 12:18 pm

This script runs some very Raspberry Pi OS specific commands and that's why it checks for the Raspberry Pi OS environment. Many of the shell.run_command() commands that it runs can just be run from the command line though.

MakerMelissa
 
Posts: 254
Joined: Wed Jun 05, 2013 2:10 am

Re: Blinka Exiting due to error: Sorry.

by andrzejm on Wed Apr 07, 2021 1:14 pm

Thanks for quick replay. I will check the script and try to incorporate parts of it into Dockerfiles

andrzejm
 
Posts: 2
Joined: Wed Apr 07, 2021 8:36 am

Please be positive and constructive with your questions and comments.