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
The text was updated successfully, but these errors were encountered:
NeroBurner
pushed a commit
to NeroBurner/python-aptly
that referenced
this issue
Jul 17, 2024
The `yaml.load()` function without a `Loader` keyword is deprecated
since `pyyaml 5.1` and removed with `pyyaml 6.0`.
Ubuntu 24.04 noble ships with `pyyaml 6.0.1` breaking `python-aptly` and
`aptly-publisher`.
Fix it by using the recommended `yaml.safe_load()` function.
Fixes: tcpcloud#32
NeroBurner
added a commit
to NeroBurner/python-aptly
that referenced
this issue
Jul 17, 2024
The `yaml.load()` function without a `Loader` keyword is deprecated
since `pyyaml 5.1` and removed with `pyyaml 6.0`.
Ubuntu 24.04 noble ships with `pyyaml 6.0.1` breaking `python-aptly` and
`aptly-publisher`.
Fix it by using the recommended `yaml.safe_load()` function.
Fixes: tcpcloud#32
On Ubuntu 24.04 noble the command errors with the following message (both current master and 0.12.12):
Should be related to the deprecation warning issued in Ubuntu 22.04 run:
The
python3-aptly
andaptly-publisher
version0.12.12-1
from the Ubuntu Repo seems to work. Maybe the Debin/Ubuntu maintainers added a patch we could use hereThe text was updated successfully, but these errors were encountered: