Skip to content

Lab2: fix for error installing tflite-runtime #3

@guynich

Description

@guynich

For Lab2 the command to Install TensorFlow Lite python module failed for me with this error.

pip install --break-system-packages tflite-runtime
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/f2/e9/5fc0435129c23c17551fcfadc82bd0d5482276213dfbc641f07b4420cb6d/tflite_runtime-2.14.0-cp311-cp311-manylinux_2_34_aarch64.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:992)')))

I noticed the RPi5 system date and time is several days ahead of US Pacific PST. I'm in Singapore and the time difference is +15 hours so I determined my RPi5 is not setup correctly for location and timezone.

My fix was to set the localisation option in RPi5 OS terminal.

sudo raspi-config

Then select 5 Localisation Options Configure language and regional settings then L2 Timezone Configure time zone. I chose US as the geographic area and Pacific Ocean for timezone and then selected Finish using tab key then return/enter to leave the configuration menu.

Final step is reboot the board.

sudo reboot

After SSH connection to the board the command to install tflite-runtime python package completed as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions