Skip to contentSkip to conversation

b4-am SyntaxError on Python 3.5

DISCUSSION Krzysztof Kozlowski 2 participants 3 messages Sep 2, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I tried now b4 v0.5.2 on my Ubuntu 16.04 with Python 3.5 and:

  $ b4
  Traceback (most recent call last):
    File "/home/krzk/.local/bin/b4", line 7, in <module>
      from b4.command import cmd
    File "/home/krzk/.local/lib/python3.5/site-packages/b4/__init__.py", line 625
      ecode, out = git_run_command(gitdir, ['show', f'{when}:{fn}'])
                                                                 ^
  SyntaxError: invalid syntax

Is Python v3.5 not supported by b4?

Best regards,
Krzysztof

#1 lore raw
Quoted 13 lines · Krzysztof Kozlowski

Hi,

I tried now b4 v0.5.2 on my Ubuntu 16.04 with Python 3.5 and:

  $ b4
  Traceback (most recent call last):
    File "/home/krzk/.local/bin/b4", line 7, in <module>
      from b4.command import cmd
    File "/home/krzk/.local/lib/python3.5/site-packages/b4/__init__.py", line 625
      ecode, out = git_run_command(gitdir, ['show', f'{when}:{fn}'])
                                                                 ^
  SyntaxError: invalid syntax
Quoted 1 line

Is Python v3.5 not supported by b4?

setup.py specifies that Python 3.6 or above is required.

#2 lore raw
Quoted 16 lines · Kyle Meyer
Quoted 13 lines · Krzysztof Kozlowski

Hi,

I tried now b4 v0.5.2 on my Ubuntu 16.04 with Python 3.5 and:

  $ b4
  Traceback (most recent call last):
    File "/home/krzk/.local/bin/b4", line 7, in <module>
      from b4.command import cmd
    File "/home/krzk/.local/lib/python3.5/site-packages/b4/__init__.py", line 625
      ecode, out = git_run_command(gitdir, ['show', f'{when}:{fn}'])
                                                                 ^
  SyntaxError: invalid syntax
Quoted 3 lines
Quoted 1 line

Is Python v3.5 not supported by b4?

setup.py specifies that Python 3.6 or above is required.

Somehow I missed this information. Thanks for the explanation.

Best Regards,
Krzysztof