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

**URL:** https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771
**Category:** Help
**Created:** [May 17, 2021, 3:37am UTC](https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771 "2021-05-17T03:37:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![enrico](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@enrico](https://discourse.beets.io/u/enrico)
#### Post date: [May 17, 2021, 3:37am UTC](https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771/1 "2021-05-17T03:37:08Z")

</div>

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
_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
```

---

<div class="post-metadata">

### Author: ![enrico](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@enrico](https://discourse.beets.io/u/enrico)
#### Post date: [May 18, 2021, 12:25am UTC](https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771/2 "2021-05-18T00:25:59Z")

</div>

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](https://github.com/linuxserver/docker-beets/issues/80)

---

<div class="post-metadata">

### Author: ![trolley](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/trolley/32/431_2.png) [@trolley](https://discourse.beets.io/u/trolley)
#### Post date: [May 24, 2021, 12:11am UTC](https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771/3 "2021-05-24T00:11:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jackwilsdon](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jackwilsdon/32/10_2.png) [@jackwilsdon](https://discourse.beets.io/u/jackwilsdon)
#### Post date: [May 24, 2021, 12:24am UTC](https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771/4 "2021-05-24T00:24:36Z")

</div>

@trolley, publishing a new release is a time consuming process. See this discussion: [Forming a beets "core team"](https://discourse.beets.io/t/forming-a-beets-core-team/639)

---

<div class="post-metadata">

### Author: ![trolley](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/trolley/32/431_2.png) [@trolley](https://discourse.beets.io/u/trolley)
#### Post date: [May 24, 2021, 12:25am UTC](https://discourse.beets.io/t/valueerror-name-node-cant-be-used-with-none-constant-in-docker-container/1771/5 "2021-05-24T00:25:37Z")

</div>

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