mkb79 / audible-cli

A command line interface for audible package. With the cli you can download your Audible books, cover, chapter files.
GNU Affero General Public License v3.0
423 stars 45 forks source link

Audible CLI not running #206

Closed faiuwle closed 2 months ago

faiuwle commented 2 months ago

Whenever I run this I get the following error:


Traceback (most recent call last):
  File "/home/ruth/.local/bin/audible", line 5, in <module>
    from audible_cli import main
  File "/home/ruth/.local/lib/python3.8/site-packages/audible_cli/__init__.py", line 5, in <module>
    from .cli import main, quickstart
  File "/home/ruth/.local/lib/python3.8/site-packages/audible_cli/cli.py", line 33, in <module>
    @plugins.from_entry_point(entry_points(group=PLUGIN_ENTRY_POINT))
TypeError: entry_points() got an unexpected keyword argument 'group'

Installation did not indicate that I was missing any dependencies.

mkb79 commented 2 months ago

Thank you for open this issue. The exception is raised because you use an old version of the importlib-metadata package. How do you have installed audible-cli, do you use a venv, which OS do you use?

faiuwle commented 2 months ago

Ahh, thanks. What version is needed, and can it be upgraded with pip? I simply installed it via pip install audible-cli outside of a venv and only recently installed importlib-metadata for another package. This is on Ubuntu 20.04, which I imagine is pretty old now, but I haven't used this particular install in a while.

mkb79 commented 2 months ago

If I read the changelog for importlib-metadatada correctly, you need at least v4.8.1.

You can now run pip install --upgrade importlib-metadata. If the upgraded package conflicts with other packages you have already installed, I suggest you use a venv for audible-cli. If you need help for this step, please write here.

faiuwle commented 2 months ago

Thank you, after upgrading the package everything worked perfectly!

mkb79 commented 2 months ago

Great to hear that. I'll close this issue now.