New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed ruamel version (not working with ruamel >=0.15.5) #23
Conversation
Thanks for the PR. Looks like this issue was introduced by In doing some initial diagnosing with borgmatic, I looked at the type information of the Looking a the changelog, it definitely appears that this change occurred in 0.15.52. I want to look at this a little more before just pinning to an older version as you suggest here. |
Using borgmatic 1.2.0 would solve this issue? Edit: yes But if I keep my borgmatic on an older version, how can I keep borgbackup at a corresponding version (without manually compiling it)? |
@BarbzYHOOL borgmatic does not declare a pinned dependency on a particular version of borgbackup. Generally most versions of borgbackup should work with most versions of borgmatic. Having said that, I plan to rectify this issue soon, so you won't need to pin borgmatic anymore. |
Okay, I believe this is now fixed in borgmatic 1.2.2, just released. Rather than pinning I do appreciate the PR though. It let me know this was an issue, and it would've been the backup plan had I not been able to work around the issue. |
"Generally most versions of borgbackup should work with most versions of borgmatic." not true, I tried a simple setup the first time: borgbackup/stable 1.0.9-1 amd64 + borgmatic latest version (at the time, 1.2.0 I suppose), and it didn't work so I had to install the 1.6.1 borgbackup And I confirm 1.2.2 works fine. Btw is there a command to display borgmatic version? |
Thanks for reporting that incompatibility. In the future, please feel free to file a ticket or submit a PR with a fix. Since borgmatic doesn't have an exhaustive matrix of continuous integration tests to validate compatibility with different versions of Borg (which would be pretty cool to have), I have to rely on bug reports for that. |
Also, do you recall what the incompatibility was with Borg 1.0.9? Was it with the |
I would reinstall the older borg to try but I am not sure how. I tried to downgrade but it says:
I think the incompatibility was simply not being able to launch borgmatic at all after installation. |
Okay, I'll see if I can reproduce the problem on my machine. If this sort of thing occurs again, a bug report would be great. Thanks. |
Will do but well I needed to test borgmatic first before opening a bug report :P |
Just installed borgmattic and got this error.
|
This happens with ruamel.yaml 0.15.70. Moving to 0.15.69 solved this issue. |
Thanks for mentioning. This issue is being tracked here: https://projects.torsion.org/witten/borgmatic/issues/95 .. You're welcome to follow its progress there! |
sorry, thanks! |
No worries! Looks like the issue is now fixed in ruamel.yaml 0.15.71. |
Ruamel 0.15.5 (released about 13 hours ago) not working correctly in conjunction with pykwalify.
With a default config, when borgmatic starts
pykwalify.errors.RuleError: <RuleError: error code 4: Value for keyword 'map/mapping' is not a dict: Path: '/'>
Installing ruamel.yaml==0.15.4 seem to solve the issue.