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.
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.