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 when using application #3719

Closed
chayward1 opened this issue Aug 4, 2020 · 4 comments
Closed

ValueError when using application #3719

chayward1 opened this issue Aug 4, 2020 · 4 comments

Comments

@chayward1
Copy link

Problem

When using the program a ValueError is returned and the program does not function

Running this command in verbose (-vv) mode:

~ ❯❯❯ beet -vv
user configuration: /home/chris/.config/beets/config.yaml
data directory: /home/chris/.config/beets
plugin paths: 
Sending event: pluginload
Traceback (most recent call last):
  File "/sbin/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
~ ❯❯❯ 

Led to this problem:

Cannot use the program

(paste here)

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

Setup

  • OS: Arch Linux
  • Python version: Python 3.8.5
  • beets version: 1.4.9 (Latest from pacman)
  • Turning off plugins made problem go away (yes/no):
    no

My configuration (output of beet config) is:

Command throws the same error as above

directory: ~/Music
import:
  move: yes
@sampsyo
Copy link
Member

sampsyo commented Aug 4, 2020

Please see #3674.

@chayward1
Copy link
Author

Can you be more specific? That issue just links to two other issues none of which I can find a fix within?

@wisp3rwind
Copy link
Member

Those two issues would have told you that this is a known problem which is fixed in a development version but is not released yet due to limited free time of the maintainers. You could also have found a link that explains how to install the latest source as a workaround:

see the "How do I run the latest source version of beets?" section of the FAQ — that should hopefully get you started.

@chayward1
Copy link
Author

Those two issues would have told you that this is a known problem which is fixed in a development version but is not released yet due to limited free time of the maintainers. You could also have found a link that explains how to install the latest source as a workaround:

see the "How do I run the latest source version of beets?" section of the FAQ — that should hopefully get you started.

Didn't see those but I appreciate your help, thank you.

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

3 participants