Bug 255732

Summary: audio/beets: broken with python38.
Product: Ports & Packages Reporter: Alexandre C. Guimarães <rigoletto>
Component: Individual Port(s)Assignee: Alexandre C. Guimarães <rigoletto>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: fcharlier
Priority: --- Flags: rigoletto: maintainer-feedback?
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Fix runtime with python 3.8 and 3.9. none

Description Alexandre C. Guimarães freebsd_committer 2021-05-09 20:40:07 UTC

beets is broken here when built against python38, and no idea why but I suppose it may be a missing dependency:

Traceback (most recent call last):
  File "/usr/local/bin/beet", line 11, in <module>
    load_entry_point('beets==1.4.9', 'console_scripts', 'beet')()
  File "/usr/local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1266, in main
  File "/usr/local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1249, in _raw_main
    subcommands, plugins, lib = _setup(options, lib)
  File "/usr/local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1144, in _setup
    lib = _open_library(config)
  File "/usr/local/lib/python3.8/site-packages/beets/ui/__init__.py", line 1201, in _open_library
  File "/usr/local/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/local/lib/python3.8/site-packages/beets/util/functemplate.py", line 571, in template
    return Template(fmt)
  File "/usr/local/lib/python3.8/site-packages/beets/util/functemplate.py", line 581, in __init__
    self.compiled = self.translate()
  File "/usr/local/lib/python3.8/site-packages/beets/util/functemplate.py", line 614, in translate
    func = compile_func(
  File "/usr/local/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

Thanks you!
Comment 1 Bugzilla Automation freebsd_committer 2021-05-09 20:40:07 UTC
Maintainer informed via mail
Comment 2 François Charlier 2021-06-08 14:35:53 UTC
Beets 1.4.9 with python >= 3.8 requires the following patch https://github.com/beetbox/beets/pull/3621/ (merged upstream, still unreleased).
Comment 3 Alexandre C. Guimarães freebsd_committer 2021-06-08 15:03:21 UTC
Created attachment 225639 [details]
Fix runtime with python 3.8 and 3.9.

fcharlier, thanks!
Comment 4 Alexandre C. Guimarães freebsd_committer 2021-09-19 21:09:18 UTC
Beets 1.5.0 is out.