Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915340 - app-backup/borgmatic is missing two dependencies to properly work
Summary: app-backup/borgmatic is missing two dependencies to properly work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-07 17:45 UTC by Hund
Modified: 2023-10-07 21:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hund 2023-10-07 17:45:50 UTC
Using Borg with flags is not possible, unless you install missing dependencies.

Example:

```
borgmatic --help                   
Traceback (most recent call last):
  File "/usr/bin/borgmatic", line 5, in <module>
    from borgmatic.commands.borgmatic import main
  File "/usr/lib/python3.11/site-packages/borgmatic/commands/borgmatic.py", line 17, in <module>
    import borgmatic.actions.borg
  File "/usr/lib/python3.11/site-packages/borgmatic/actions/borg.py", line 5, in <module>
    import borgmatic.config.validate
  File "/usr/lib/python3.11/site-packages/borgmatic/config/validate.py", line 3, in <module>
    import jsonschema
  File "/usr/lib/python3.11/site-packages/jsonschema/__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "/usr/lib/python3.11/site-packages/jsonschema/_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "/usr/lib/python3.11/site-packages/jsonschema/exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
ModuleNotFoundError: No module named 'referencing'
```

When I installed these two packages it worked:

1. dev-python/jsonschema-specifications
2. dev-python/referencing

I dopn'
Comment 1 Hund 2023-10-07 17:46:29 UTC
s/I dopn'//
Comment 2 Marek Szuba (RETIRED) archtester gentoo-dev 2023-10-07 19:59:59 UTC
Which version of borgmatic are we talking about here?
Comment 3 Hund 2023-10-07 20:24:45 UTC
(In reply to Marek Szuba from comment #2)
> Which version of borgmatic are we talking about here?

Ops. I forgot about that. I'm using version 1.8.2.
Comment 4 Marek Szuba (RETIRED) archtester gentoo-dev 2023-10-07 20:53:01 UTC
OK, I am pretty sure this is not a Borgmatic problem. One - the code of borgmatic-1.8.2 contains no references to the module "referencing". Two - indeed, your traceback shows it is jsonschema itself that attempts to import the module in question. Three - the ebuild for jsonschema-4.19.0 actually RDEPENDs on both of the packages you have mentioned, in line with the hypothesis that it's jsonschema and not borgmatic that needs these packages.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-07 21:17:06 UTC
Have you been unmerging packages or something?