Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with nre version python 3.9 with some object of HA #4931

Closed
maury77 opened this issue Nov 4, 2021 · 5 comments
Closed

Problem with nre version python 3.9 with some object of HA #4931

maury77 opened this issue Nov 4, 2021 · 5 comments
Labels
Solution available 🥂 Definite solution has been done

Comments

@maury77
Copy link

maury77 commented Nov 4, 2021

Creating a bug report/issue

Required Information

  • DietPi version | `7.7.2
  • Distro version | bullseye
  • Kernel version | linuxux sdomotica 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
  • SBC model | RPi 3 Model B+ (armv7l)
  • Power supply used | (EG: 5V 3A)

I upgrade to dietPi 7.7.2 and Home assistant with python 3.9.7

after upgrade I have this error

Steps to reproduce

nov 04 22:29:35 sdomotica homeassistant[3274]: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
nov 04 22:29:35 sdomotica homeassistant[3274]: Importing the numpy C-extensions failed. This error can happen for
nov 04 22:29:35 sdomotica homeassistant[3274]: many reasons, often due to issues with your setup or how NumPy was
nov 04 22:29:35 sdomotica homeassistant[3274]: installed.
nov 04 22:29:35 sdomotica homeassistant[3274]: We have compiled some common reasons and troubleshooting tips at:
nov 04 22:29:35 sdomotica homeassistant[3274]:     https://numpy.org/devdocs/user/troubleshooting-importerror.html
nov 04 22:29:35 sdomotica homeassistant[3274]: Please note and check the following:
nov 04 22:29:35 sdomotica homeassistant[3274]:   * The Python version is: Python3.9 from "/home/homeassistant/.pyenv/versions/3.9.7/bin/python3.9"
nov 04 22:29:35 sdomotica homeassistant[3274]:   * The NumPy version is: "1.21.3"
nov 04 22:29:35 sdomotica homeassistant[3274]: and make sure that they are the versions you expect.
nov 04 22:29:35 sdomotica homeassistant[3274]: Please carefully study the documentation linked above for further help.
nov 04 22:29:35 sdomotica homeassistant[3274]: Original error was: libcblas.so.3: cannot open shared object file: No such file or directory

@MichaIng MichaIng added this to the v7.8 milestone Nov 4, 2021
@MichaIng MichaIng added the Duplicate For issues that are/were already handled within another issue label Nov 4, 2021
@MichaIng
Copy link
Owner

MichaIng commented Nov 4, 2021

Many thanks for your report.

This is the issue, I'm working on a workaround for tomorrow: #4928

I'll close this in favour if the linked issue.

@MichaIng MichaIng closed this as completed Nov 4, 2021
@Joulinar
Copy link
Collaborator

Joulinar commented Nov 4, 2021

@MichaIng
but this is a bullseye system

@MichaIng MichaIng reopened this Nov 4, 2021
@MichaIng MichaIng added Investigating 🤔 and removed Duplicate For issues that are/were already handled within another issue labels Nov 4, 2021
@MichaIng
Copy link
Owner

MichaIng commented Nov 4, 2021

Ah whoops, right.

@maury77
Please try:

apt install libblas3
systemctl restart home-assistant

Which additional modules have you installed in Home Assistant? This library seems to be not required on a fresh HA, but probably some extension does.

@maury77
Copy link
Author

maury77 commented Nov 5, 2021

Ah whoops, right.

@maury77 Please try:

apt install libblas3
systemctl restart home-assistant

Which additional modules have you installed in Home Assistant? This library seems to be not required on a fresh HA, but probably some extension does.

Now is ok thanks...

the problem is the upgrade to bullseye....

@MichaIng
Copy link
Owner

MichaIng commented Nov 5, 2021

the problem is the upgrade to bullseye....

No it is not generally required on Bullseye, but likely an extension you use pulls a Python modules from piwheels.org which requires it. It is expected that additional packages are required when using HA extension, which is the reason we have these dietpi.txt settings 🙂: https://github.com/MichaIng/DietPi/blob/a4cf2c5/dietpi.txt#L261-L266

@maury77 maury77 closed this as completed Nov 7, 2021
@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Investigating 🤔 labels Nov 7, 2021
@MichaIng MichaIng removed this from the v7.8 milestone Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

3 participants