Borgmatic "SyntaxError: invalid syntax" on launch #102

Closed
opened 2018-10-15 08:21:21 +00:00 by reed · 2 comments

Hi,

I installed Borgmatic on a Ubuntu 16.04.5 LTS via "sudo pip3 install --upgrade borgmatic" and I had a error message:

:~$ borgmatic --help
Traceback (most recent call last):
  File "/usr/local/bin/borgmatic", line 7, in <module>
    from borgmatic.commands.borgmatic import main
  File "/usr/local/lib/python3.5/dist-packages/borgmatic/commands/borgmatic.py", line 193
    ):  # pragma: no cover
    ^
SyntaxError: invalid syntax

I edit the file "/usr/local/lib/python3.5/dist-packages/borgmatic/commands/borgmatic.py" and remove the coma on line 192:

def _run_commands_on_repository(
    *,
    args,
    consistency,
    json_results,
    local_path,
    location,
    remote_path,
    retention,
    storage,
    unexpanded_repository # Remove the coma HERE
):  # pragma: no cover

Hope this help.

Hi, I installed Borgmatic on a Ubuntu 16.04.5 LTS via "_sudo pip3 install --upgrade borgmatic_" and I had a error message: ``` :~$ borgmatic --help Traceback (most recent call last): File "/usr/local/bin/borgmatic", line 7, in <module> from borgmatic.commands.borgmatic import main File "/usr/local/lib/python3.5/dist-packages/borgmatic/commands/borgmatic.py", line 193 ): # pragma: no cover ^ SyntaxError: invalid syntax ``` I edit the file "_/usr/local/lib/python3.5/dist-packages/borgmatic/commands/borgmatic.py_" and remove the coma on line 192: ``` def _run_commands_on_repository( *, args, consistency, json_results, local_path, location, remote_path, retention, storage, unexpanded_repository # Remove the coma HERE ): # pragma: no cover ``` Hope this help.
Owner

Looks like this is syntax that works in Python 3.6/3.7, but not in Python 3.5! I'll put out a fix release, and also add Python 3.5 to the tests run in continuous integration. Thanks for reporting.

Looks like this is syntax that works in Python 3.6/3.7, but not in Python 3.5! I'll put out a fix release, and also add Python 3.5 to the tests run in continuous integration. Thanks for reporting.
witten added the
bug
label 2018-10-15 15:48:03 +00:00
Owner

Okay, fixed and released in borgmatic 1.2.9. Thanks again.

Okay, fixed and released in borgmatic 1.2.9. Thanks again.
Sign in to join this conversation.
No Milestone
No Assignees
2 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#102
No description provided.