PythonScriptsPro icon indicating copy to clipboard operation
PythonScriptsPro copied to clipboard

Cant install requirements

Open mksmo opened this issue 1 year ago • 1 comments

In configuration.yaml requirements listed libraries. error: No module named 'matplotlib' Current Homeassistant version 2024.7.3

python_script:
  requirements:
  - paramiko>=2.7.1
  - matplotlib>=3.9.0
  - requests>=2.0.0
  - beautifulsoup4>=4.0.0
  - Pillow>=10.0.0
  - qrcode>=7.0.0
  - numpy>=1.26.0
  - Cython>=3.0.0
  - dateparser>=1.1.0

Error executing script Traceback (most recent call last): File "/config/custom_components/python_script/__init__.py", line 106, in execute_script exec(code, vars) File "/config/scripts/plot.py", line 5, in <module> import matplotlib.pyplot as plt ModuleNotFoundError: No module named 'matplotlib'

Скриншот

Alt text

mksmo avatar Jul 29 '24 18:07 mksmo

Two options. Either you didn't wait for the installation. Or this dependency cannot be installed in the HA environment (this also happens).

AlexxIT avatar Dec 07 '24 10:12 AlexxIT