How do I upgrade from git to 1.5.0

My upgrade to Ubuntu 20.04 broke beats, and I was forced to upgrade to Git to keep importing. I did that back in May 2020, so I am sure that 1.5.0 stable is ahead of what I have installed.

How do I move to stable?

Is it as simple as pip3 install beets --upgrade and it will upgrade me from the GIT version?

I don’t think --upgrade will do anything in this case (at least from my testing), as it will recognise the version you have from Git as being 1.5.0.

Your safest bet is just a pip3 uninstall beets followed by a pip3 install beets.

1 Like

So I did as you suggested and now whenever I type the beet command I get this:

Traceback (most recent call last):
  File "/home/andy/.local/bin/beet", line 8, in <module>
    sys.exit(main())
  File "/home/andy/.local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1291, in main
    _raw_main(args)
  File "/home/andy/.local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1274, in _raw_main
    subcommands, plugins, lib = _setup(options, lib)
  File "/home/andy/.local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1153, in _setup
    plugins = _load_plugins(options, config)
  File "/home/andy/.local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1139, in _load_plugins
    plugins.send("pluginload")
  File "/home/andy/.local/lib/python3.8/site-packages/beets/plugins.py", line 497, in send
    for handler in event_handlers()[event]:
  File "/home/andy/.local/lib/python3.8/site-packages/beets/plugins.py", line 480, in event_handlers
    for plugin in find_plugins():
  File "/home/andy/.local/lib/python3.8/site-packages/beets/plugins.py", line 315, in find_plugins
    _instances[cls] = cls()
  File "/home/andy/.local/lib/python3.8/site-packages/beetsplug/lyrics.py", line 736, in __init__
    sources = self.sanitize_bs_sources(sources)
  File "/home/andy/.local/lib/python3.8/site-packages/beetsplug/lyrics.py", line 763, in sanitize_bs_sources
    if source.REQUIRES_BS:
AttributeError: 'str' object has no attribute 'REQUIRES_BS'

DOH!

pip3 install bs4

Problem fixed!

1 Like

This also seems to be a bug, FWIW—tracked here:

1 Like

Ok,I feel less like an idiot now.