Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beets python3.9 error #3975

Closed
alfureu opened this issue Jun 9, 2021 · 1 comment
Closed

beets python3.9 error #3975

alfureu opened this issue Jun 9, 2021 · 1 comment

Comments

@alfureu
Copy link

alfureu commented Jun 9, 2021

Problem

Running this command in verbose (-vv) mode:

$ beet --version

Led to this problem:

Traceback (most recent call last):
  File "/opt/bin/beet", line 8, in <module>
    sys.exit(main())
  File "/opt/lib/python3.9/site-packages/beets/ui/__init__.py", line 1266, in main
    _raw_main(args)
  File "/opt/lib/python3.9/site-packages/beets/ui/__init__.py", line 1249, in _raw_main
    subcommands, plugins, lib = _setup(options, lib)
  File "/opt/lib/python3.9/site-packages/beets/ui/__init__.py", line 1144, in _setup
    lib = _open_library(config)
  File "/opt/lib/python3.9/site-packages/beets/ui/__init__.py", line 1201, in _open_library
    get_path_formats(),
  File "/opt/lib/python3.9/site-packages/beets/ui/__init__.py", line 619, in get_path_formats
    path_formats.append((query, template(view.as_str())))
  File "/opt/lib/python3.9/site-packages/beets/util/functemplate.py", line 571, in template
    return Template(fmt)
  File "/opt/lib/python3.9/site-packages/beets/util/functemplate.py", line 581, in __init__
    self.compiled = self.translate()
  File "/opt/lib/python3.9/site-packages/beets/util/functemplate.py", line 614, in translate
    func = compile_func(
  File "/opt/lib/python3.9/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

Here's a link to the music files that trigger the bug (if relevant):

Setup

  • OS: Linux
  • Python version: Python 3.9.4
  • beets version: 1.4.9
  • Turning off plugins made problem go away (yes/no): no
@wisp3rwind
Copy link
Member

See #3674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants