cast_control icon indicating copy to clipboard operation
cast_control copied to clipboard

Issues with running after installing (mpris_server import error)

Open drjaska opened this issue 6 months ago • 0 comments

Hi, I attempted to install and run the software with the following commands on a Debian Testing (13 pre-release) system:

sudo apt-get install -y \
	python3-gi \
	gobject-introspection \
	libgirepository-1.0-dev

mkdir -p "$HOME/programs/cast-control"

python3 -m venv "$HOME/programs/cast-control/.venv"

source "$HOME/programs/cast-control/.venv/bin/activate"

python3 -m pip install -U cast-control

"$HOME/programs/cast-control/.venv/bin/cast_control"

But I get the following traceback:

Traceback (most recent call last):
  File "/home/drjaska/programs/cast-control/.venv/bin/cast_control", line 5, in <module>
    from cast_control.app.cli import cli
  File "/home/drjaska/programs/cast-control/.venv/lib/python3.12/site-packages/cast_control/app/cli.py", line 9, in <module>
    from .run import run_safe
  File "/home/drjaska/programs/cast-control/.venv/lib/python3.12/site-packages/cast_control/app/run.py", line 8, in <module>
    from mpris_server import Server
ImportError: cannot import name 'Server' from 'mpris_server' (/home/drjaska/programs/cast-control/.venv/lib/python3.12/site-packages/mpris_server/__init__.py)

Seeing as mpris_server pip package is fairly global I would assume that this project needs to update how it uses it and that this problem isn't a personal one. Anyways any kind of help with this would be appreciated!

drjaska avatar Aug 03 '24 10:08 drjaska