You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu 24.04 noble the command errors with the following message (both current master and 0.12.12):
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/gc/repos/aptly/python-aptly/aptly/publisher/__main__.py", line 352, in <module>
main()
File "/home/gc/repos/aptly/python-aptly/aptly/publisher/__main__.py", line 87, in main
action_publish(client, publishmgr, config_file=args.config,
File "/home/gc/repos/aptly/python-aptly/aptly/publisher/__main__.py", line 313, in action_publish
config = load_config(config_file)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gc/repos/aptly/python-aptly/aptly/publisher/__main__.py", line 23, in load_config
return yaml.load(fh)
^^^^^^^^^^^^^
TypeError: load() missing 1 required positional argument: 'Loader'
Should be related to the deprecation warning issued in Ubuntu 22.04 run:
/home/gc/repos/aptly/python-aptly/aptly/publisher/__main__.py:23: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
return yaml.load(fh)
The python3-aptly and aptly-publisher version 0.12.12-1 from the Ubuntu Repo seems to work. Maybe the Debin/Ubuntu maintainers added a patch we could use here
Activity
Use yaml.safe_load() to fix deprecation and crash
Use yaml.safe_load() to fix deprecation and crash