Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758644 - media-sound/beets-1.4.9-r2 crashes with Python 3.8.6
Summary: media-sound/beets-1.4.9-r2 crashes with Python 3.8.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guillaume Seren
URL:
Whiteboard:
Keywords:
Depends on: 693164
Blocks:
  Show dependency tree
 
Reported: 2020-12-05 12:44 UTC by Simon
Modified: 2021-01-18 13:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2020-12-05 12:44:18 UTC
When running media-sound/beets-1.4.9-r2 I get the following error
Traceback (most recent call last):
  File "/usr/bin/beet", line 11, in <module>
    load_entry_point('beets==1.4.9', 'console_scripts', 'beet')()
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1266, in main
    _raw_main(args)
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1249, in _raw_main
    subcommands, plugins, lib = _setup(options, lib)
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1144, in _setup
    lib = _open_library(config)
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1201, in _open_library
    get_path_formats(),
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 619, in get_path_formats
    path_formats.append((query, template(view.as_str())))
  File "/usr/lib/python3.8/site-packages/beets/util/functemplate.py", line 571, in template
    return Template(fmt)
  File "/usr/lib/python3.8/site-packages/beets/util/functemplate.py", line 581, in __init__
    self.compiled = self.translate()
  File "/usr/lib/python3.8/site-packages/beets/util/functemplate.py", line 614, in translate
    func = compile_func(
  File "/usr/lib/python3.8/site-packages/beets/util/functemplate.py", line 155, in compile_func
    prog = compile(mod, '<generated>', 'exec')
ValueError: Name node can't be used with 'None' constant

See https://github.com/beetbox/beets/issues/3772

Reproducible: Always
Comment 1 Mathieu Carpentier 2020-12-06 18:36:54 UTC
I have the same problem with media-sound/beets-1.4.9-r2 and python 3.8.6
Comment 2 arcctgx 2020-12-06 19:15:40 UTC
According to https://github.com/beetbox/beets/issues/3674 problem will be reproducible with any version of Python more recent than 3.7.
Comment 3 Guillaume Seren 2020-12-09 12:04:50 UTC
Hello everyone,
yes I already noticed that issue and added a fix for it,
it is actually being reviewed, you can help by trying the upgraded version,
here: https://github.com/gentoo/gentoo/pull/16046

Thank you
Comment 4 Mathieu Carpentier 2021-01-05 19:20:30 UTC
I was able to update using the ebuild for beets-1.4.9-r3 that can be found at https://github.com/gentoo/gentoo/pull/16046

I no longer have the error with beets with Pythong 3.8.6
Comment 5 Guillaume Seren 2021-01-18 13:24:24 UTC
Fixed by the merge of #693164