pykwalify.errors.RuleError #46

Closed
opened 2018-01-05 05:34:48 +00:00 by import_bot · 4 comments
Collaborator

(Even) with the default config file I get on Arch Linux:

/home/tamriel/borgmatic_config1.yaml: Parsing configuration file
Traceback (most recent call last):
File "/usr/bin/borgmatic", line 11, in
load_entry_point('borgmatic==1.1.11.dev0', 'console_scripts', 'borgmatic')()
File "/usr/lib/python3.6/site-packages/borgmatic/commands/borgmatic.py", line 137, in main
run_configuration(config_filename, args)
File "/usr/lib/python3.6/site-packages/borgmatic/commands/borgmatic.py", line 89, in run_configuration
config = validate.parse_configuration(config_filename, validate.schema_filename())
File "/usr/lib/python3.6/site-packages/borgmatic/config/validate.py", line 81, in parse_configuration
parsed_result = validator.validate(raise_exception=False)
File "/usr/lib/python3.6/site-packages/pykwalify/core.py", line 147, in validate
self._start_validate(self.source)
File "/usr/lib/python3.6/site-packages/pykwalify/core.py", line 187, in _start_validate
root_rule = Rule(schema=self.schema)
File "/usr/lib/python3.6/site-packages/pykwalify/rule.py", line 62, in init
self.init(schema, "")
File "/usr/lib/python3.6/site-packages/pykwalify/rule.py", line 358, in init
path=path,
pykwalify.errors.RuleError: <RuleError: error code 4: Unknown key: version found: Path: '/'>


Imported from Taiga issue 45 (done). Created on 2017-11-23T15:58:49+0000 by Jan.

(Even) with the default config file I get on Arch Linux: /home/tamriel/borgmatic_config1.yaml: Parsing configuration file Traceback (most recent call last): File "/usr/bin/borgmatic", line 11, in <module> load_entry_point('borgmatic==1.1.11.dev0', 'console_scripts', 'borgmatic')() File "/usr/lib/python3.6/site-packages/borgmatic/commands/borgmatic.py", line 137, in main run_configuration(config_filename, args) File "/usr/lib/python3.6/site-packages/borgmatic/commands/borgmatic.py", line 89, in run_configuration config = validate.parse_configuration(config_filename, validate.schema_filename()) File "/usr/lib/python3.6/site-packages/borgmatic/config/validate.py", line 81, in parse_configuration parsed_result = validator.validate(raise_exception=False) File "/usr/lib/python3.6/site-packages/pykwalify/core.py", line 147, in validate self._start_validate(self.source) File "/usr/lib/python3.6/site-packages/pykwalify/core.py", line 187, in _start_validate root_rule = Rule(schema=self.schema) File "/usr/lib/python3.6/site-packages/pykwalify/rule.py", line 62, in __init__ self.init(schema, "") File "/usr/lib/python3.6/site-packages/pykwalify/rule.py", line 358, in init path=path, pykwalify.errors.RuleError: <RuleError: error code 4: Unknown key: version found: Path: '/'> --- Imported from Taiga issue 45 (done). Created on 2017-11-23T15:58:49+0000 by Jan.
import_bot added the
bug
label 2018-01-05 05:34:48 +00:00
Author
Collaborator

Are you sure that you're using a config file generated with generate-borgmatic-config, and not the borgmatic config schema itself? Can I have a look at your borgmatic_config1.yaml file contents?

Also, what version of python-pykwalify and python-ruamel-yaml do you have installed?


Comment on 2017-11-25T19:17:52+0000 by Dan Helfman.

Are you sure that you're using a config file generated with `generate-borgmatic-config`, and not the borgmatic config schema itself? Can I have a look at your `borgmatic_config1.yaml` file contents? Also, what version of `python-pykwalify` and `python-ruamel-yaml` do you have installed? --- Comment on 2017-11-25T19:17:52+0000 by Dan Helfman.
Author
Collaborator

I added the file above.
I have python-pykwalify 1.5.2-1 and python-ruamel-yaml 0.15.34-1 installed.


Comment on 2017-11-26T14:51:52+0000 by Jan.

I added the file above. I have python-pykwalify 1.5.2-1 and python-ruamel-yaml 0.15.34-1 installed. --- Comment on 2017-11-26T14:51:52+0000 by Jan.
Author
Collaborator

Aha! Looks like the problem is the version of pykwalify. I managed to reproduce the error here with that version. Would it be possible to upgrade to 1.6.x?


Comment on 2017-11-26T18:22:31+0000 by Dan Helfman.

Aha! Looks like the problem is the version of pykwalify. I managed to reproduce the error here with that version. Would it be possible to upgrade to 1.6.x? --- Comment on 2017-11-26T18:22:31+0000 by Dan Helfman.
Author
Collaborator

borgmatic 1.1.12 (just released) now declares a dependency on pykwalify 1.6+.


Comment on 2018-01-03T04:40:38+0000 by Dan Helfman.

borgmatic 1.1.12 (just released) now declares a dependency on pykwalify 1.6+. --- Comment on 2018-01-03T04:40:38+0000 by Dan Helfman.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#46
No description provided.