Shell command / terminal / ssh = different environments?

Hi all,

I have a simple command, but running it via a batch command or a terminal or ssh, give me 3 different results :frowning:

-When I run this command “pip3 install lyricsgenius” via a terminal, my py-script (python3 lyric.py) runs perfectly.

  • when I run this via a shell command, I don’t get any errors while running the pip3 install, but when I try to run “python3 lyric.py” afterwards, I always get an error that lyricsgenius module is missing.
  • when I run the pip3 install command via SSH (via root account), I get an error about the need to setup a virtual environment for this.

This used to work perfectly a few months ago …
at least, lyricsgenius module was always present after a reboot, while I had a shell command scheduled to re-install lyricsgenius via PIP after reboot.
I’m running on an Odroid N2 with:

  • Core 2025.1.4
  • Supervisor 2024.12.3
  • Operating System 14.2
  • Frontend 20250109.2

I can’t use lyricsgenius that is in HACS, because I retrieve song information from songs that are not player on a mediaplayer. I have my own python code to retrieve this information from an online website.

Anyone can shine a light on how to solve this ?

Thanks from Belgium,
Kris