Bug 255732 - audio/beets: broken with python38.
Summary: audio/beets: broken with python38.
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexandre C. Guimarães
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-09 20:40 UTC by Alexandre C. Guimarães
Modified: 2021-09-19 21:09 UTC (History)
1 user (show)

See Also:
rigoletto: maintainer-feedback?


Attachments
Fix runtime with python 3.8 and 3.9. (2.07 KB, patch)
2021-06-08 15:03 UTC, Alexandre C. Guimarães
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre C. Guimarães freebsd_committer 2021-05-09 20:40:07 UTC
Hello,

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
    _raw_main(args)
  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
    get_path_formats(),
  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.