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

ValueError: Name node can't be used with 'None' constant #3686

Closed
Nick6 opened this issue Jul 25, 2020 · 1 comment
Closed

ValueError: Name node can't be used with 'None' constant #3686

Nick6 opened this issue Jul 25, 2020 · 1 comment

Comments

@Nick6
Copy link

Nick6 commented Jul 25, 2020

Beets crashes with the following error message

Problem

Running this command in verbose (-vv) mode:

D:\Scripts>beet -vv
no user configuration found at C:\Users\Nick\AppData\Roaming\beets\config.yaml
data directory: C:\Users\Nick\AppData\Roaming\beets
plugin paths:
Sending event: pluginload
Traceback (most recent call last):
File "C:\Users\Nick\AppData\Roaming\Python\Python38\Scripts\beet-script.py", line 11, in
load_entry_point('beets==1.4.9', 'console_scripts', 'beet')()
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\ui_init_.py", line 1266, in main
raw_main(args)
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\ui_init
.py", line 1249, in _raw_main
subcommands, plugins, lib = setup(options, lib)
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\ui_init
.py", line 1144, in _setup
lib = open_library(config)
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\ui_init
.py", line 1201, in open_library
get_path_formats(),
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\ui_init
.py", line 619, in get_path_formats
path_formats.append((query, template(view.as_str())))
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\util\functemplate.py", line 571, in template
return Template(fmt)
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\util\functemplate.py", line 581, in init
self.compiled = self.translate()
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\util\functemplate.py", line 614, in translate
func = compile_func(
File "C:\Users\Nick\AppData\Roaming\Python\Python38\site-packages\beets\util\functemplate.py", line 155, in compile_func
prog = compile(mod, '', 'exec')
ValueError: Name node can't be used with 'None' constant
Led to this problem:

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: Windows 10
  • Python version: Python 3.8.5
  • beets version: Latest
  • Turning off plugins made problem go away (yes/no): No
@sampsyo
Copy link
Member

sampsyo commented Jul 25, 2020

Please see #3674.

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

No branches or pull requests

2 participants