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

Update to python 3.8.10 breaks image on Raspberry Pi #80

Closed
jreedsellers opened this issue May 15, 2021 · 15 comments
Closed

Update to python 3.8.10 breaks image on Raspberry Pi #80

jreedsellers opened this issue May 15, 2021 · 15 comments

Comments

@jreedsellers
Copy link

linuxserver.io


Expected Behavior

Container should serve beets.

Current Behavior

Logs show it's hung on "ValueError: Name node can't be used with 'None' constant"
Running v1.4.9-ls49 works fine.

Steps to Reproduce

  1. Start container in Docker with latest image using docker-compose

Environment

OS: Raspbian
CPU architecture: arm32
How docker service was installed: Official docker repo

Command used to create docker container (run/create/compose/screenshot)

beets:
image: linuxserver/beets:latest
container_name: beets
restart: unless-stopped
ports:
- 8337:8337
environment:
- PUID=1000
- PGID=1000
- TZ=America/XXX
- UMASK=002
volumes:
- /beets/config:/config
- /beets/music:/music
- /beets/downloads:/downloads

Docker logs

ValueError: Name node can't be used with 'None' constant,
Traceback (most recent call last):,
File "/usr/bin/beet", line 33, in ,
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, '', 'exec'),
ValueError: Name node can't be used with 'None' constant,

@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@aptalca
Copy link
Member

aptalca commented May 15, 2021

Seems to be an upstream issue: beetbox/beets#3674

@patsaindon
Copy link

Same issue here

@Bidley
Copy link

Bidley commented May 17, 2021

Same issue here (OMV x86)

@jsetton
Copy link
Contributor

jsetton commented May 17, 2021

It looks like the main issue is that the last beets released version 1.4.9 was back in 2019.

Using the master branch version resolves this issue. So maybe this project could track that branch instead of releases.

Anyway, in the meantime, adding the below shell script to /config/custom-cont-init.d/50-install can be used as a workaround to update the container beets package to the latest version on startup.

#!/usr/bin/with-contenv bash

# Install latest beets version
#  https://github.com/linuxserver/docker-beets/issues/80
pip3 install -q --no-cache-dir https://github.com/beetbox/beets/zipball/master

@Bidley
Copy link

Bidley commented May 17, 2021

Thanks @jsetton that worked a treat.

@aptalca
Copy link
Member

aptalca commented May 17, 2021

No need for that: https://github.com/linuxserver/docker-beets#version-tags

@Taubin
Copy link

Taubin commented May 17, 2021

Switching to nightly got things working for me again. Cheers.

@jsetton
Copy link
Contributor

jsetton commented May 17, 2021

@aptalca good point although I just tried the nightly image and it is missing beets-extrafiles and mp3val for the badfiles plugin. It looks like some of the addition to the master image weren't ported over.

@aptalca
Copy link
Member

aptalca commented May 17, 2021

@jsetton
blame yourself for that :-P #55
you only PRed it to master lol

@aptalca
Copy link
Member

aptalca commented May 17, 2021

if you want to PR to nightly builds, it's just the nightly branch here

@jsetton
Copy link
Contributor

jsetton commented May 17, 2021

@aptalca I know 😄 Only for half of it though.

beets-extrafiles: #47

@jsetton
Copy link
Contributor

jsetton commented May 25, 2021

@aptalca I submitted PR #81 against the nightly branch to add the missing changes for your review.

@aptalca aptalca closed this as completed May 27, 2021
@quamok
Copy link

quamok commented Jun 3, 2021

switching to nightly fixes the python error, but replaygain with GStreamer as backend isn't working though. I get the error: rror: replaygain initialization failed: Failed to load GStreamer: python-gi not found

@jsetton
Copy link
Contributor

jsetton commented Jun 3, 2021

It looks like the GStreamer related packages were somehow removed when the nightly branch was initially created.

The following packages need to be added back to that branch:

gst-plugins-good
gstreamer
py3-gobject3

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

7 participants