Mopidy can't start as a service

Hello,
I try to start mopidy as a service, but it’s failed, and when i executed the config command “sudo mopidyctl config”, i’ve got this :

Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config" as user mopidy
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2798, in get_entry_map
    ep_map = self._ep_map
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2756, in __getattr__
    raise AttributeError(attr)
AttributeError: _ep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/mopidy", line 33, in <module>
    sys.exit(load_entry_point('Mopidy==3.4.2', 'console_scripts', 'mopidy')())
  File "/usr/lib/python3/dist-packages/mopidy/__main__.py", line 46, in main
    extensions_data = ext.load_extensions()
  File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 218, in load_extensions
    for entry_point in pkg_resources.iter_entry_points("mopidy.ext"):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 656, in <genexpr>
    for entry in dist.get_entry_map(group).values()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2801, in get_entry_map
    self._get_metadata('entry_points.txt'), self
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2503, in parse_map
    maps[group] = cls.parse_group(group, lines, dist)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2478, in parse_group
    raise ValueError("Invalid group name", group)
ValueError: ('Invalid group name', "b'mopidy.ext'")

I4ve got the same result when i execute “sudo mopidyctl deps”.
I’m on the RPi4 with Raspbian and i install Mopidy with apt and create the service with “sudo systemctl enable mopidy”

Even with “sudo mopidyctl --config /etc/mopidy/mopidy.conf -vvv” i’ve got the same return.
Is there are something obvious that i missed ?

PS: Sorry for English, it’s not my first language.

Hi @kabellrics , what version of raspbian? How was mopidy installed? What version? Did you follow the instructions from the documentation? Link? A tutorial?

Hi, My mopidy’s version is 2.3.1, Raspbian is GNU/Linux 10, and i follow the instruction from the official documentation
Installation => Debian/Ubuntu — Mopidy 4.0.0a5.dev16+g149e8af documentation
Running as Service => Running as a service — Mopidy 4.0.0a5.dev16+g149e8af documentation

Last release of Mopidy is v3.4.2 at the time of writing: Release v3.4.2 · mopidy/mopidy · GitHub

Maybe you should upgrade Mopidy and read the documentation corresponding to the version you are trying to use…

I will update my mopidy, but i think ti’s a big issue that apt install mopidy get me a so old version

It’s coherent with running an obsolete operating system! AFAICT Raspbian 10 is based on Debian buster which has reach end-of-life 2 years ago, Debian | endoflife.date :wink: