Bug 275213 - sysutils/py-borgmatic: uses removed function
Summary: sysutils/py-borgmatic: uses removed function
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vinícius Zavam
Depends on:
Reported: 2023-11-20 13:38 UTC by freebsd
Modified: 2023-11-20 14:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (egypcio)


Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2023-11-20 13:38:39 UTC
When starting borgmatic config generate, I get the error :

# borgmatic config generate
Generating a configuration file at: /usr/local/etc/borgmatic/config.yaml
Traceback (most recent call last):
  File "/usr/local/bin/borgmatic", line 33, in <module>
    sys.exit(load_entry_point('borgmatic==1.8.2', 'console_scripts', 'borgmatic')())
  File "/usr/local/lib/python3.9/site-packages/borgmatic/commands/borgmatic.py", line 872, in main
  File "/usr/local/lib/python3.9/site-packages/borgmatic/commands/borgmatic.py", line 657, in collect_highlander_action_summary_logs
  File "/usr/local/lib/python3.9/site-packages/borgmatic/actions/config/generate.py", line 25, in run_generate
  File "/usr/local/lib/python3.9/site-packages/borgmatic/config/generate.py", line 278, in generate_sample_configuration
    schema = yaml.round_trip_load(open(schema_filename))
  File "/usr/local/lib/python3.9/site-packages/ruamel/yaml/main.py", line 1127, in round_trip_load
    error_deprecation('round_trip_load_all', 'load')
  File "/usr/local/lib/python3.9/site-packages/ruamel/yaml/main.py", line 1037, in error_deprecation
    raise AttributeError(s)
"round_trip_load_all()" has been removed, use

  yaml = YAML()

instead of file "/usr/local/lib/python3.9/site-packages/borgmatic/config/generate.py", line 278

    schema = yaml.round_trip_load(open(schema_filename))

There are more recent versions upstream, they may have corrected this ?
Comment 1 freebsd 2023-11-20 14:49:39 UTC
It seems the error is only in borgmatic config generate, thus the package is usable by creating config file in text editor