"ValueError: Name node can't be used with 'None' constant" in docker container

Hey, I’m running the linuxserver/beets container, not changed a thing in years but this error popped up a couple of days ago. I realise the same error has been reported a year or more ago however given nothing has changed on my machine, I suspect there’s something wrong inside the container.

root@2f8423dda335:/# beet config -p
Traceback (most recent call last):
  File "/usr/bin/beet", line 33, in <module>
sys.exit(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
  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
  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

I switched to nightly as per the instructions here: Update to python 3.8.10 breaks image on Raspberry Pi · Issue #80 · linuxserver/docker-beets · GitHub

I wouldn’t consider this “solved” if it means not using a release tag. Can this get addressed by a new release please @adrian?

@trolley, publishing a new release is a time consuming process. See this discussion: Forming a beets "core team"

1 Like

OK, thanks. I’ll switch to the nightly docker container for now.