braindump icon indicating copy to clipboard operation
braindump copied to clipboard

SyntaxError: invalid syntax. File "/home/user/.local/lib/python3.8/site-packages/jsonf/cli.py", line 49

Open AntonSamokat opened this issue 1 year ago • 0 comments

Does not work:

$ echo '{ "foo" : "lorem", "bar" : "ipsum" }' | jsonf
Traceback (most recent call last):
  File "/home/user/.local/bin/jsonf", line 5, in <module>
    from jsonf.cli import main
  File "/home/user/.local/lib/python3.8/site-packages/jsonf/cli.py", line 49
    print ''.join(headers)
          ^
SyntaxError: invalid syntax

python --version Python 3.8.10

lsb_release -a # ubuntu version No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal

Installation log:

pip install jsonf
Defaulting to user installation because normal site-packages is not writeable
Collecting jsonf
  Downloading jsonf-1.0.tar.gz (1.8 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pygments in /home/user/.local/lib/python3.8/site-packages (from jsonf) (2.17.2)
Building wheels for collected packages: jsonf
  Building wheel for jsonf (setup.py) ... done
  Created wheel for jsonf: filename=jsonf-1.0-py3-none-any.whl size=2397 sha256=e26c2f2c1faa36864a5b79c6bbf49de9f76d8be5f831b144d41ec06f631f01b4
  Stored in directory: /home/user/.cache/pip/wheels/8d/40/da/08c85a08de9ff9f5871be3a64a3831855c8b8eac52a109532a
Successfully built jsonf
DEPRECATION: devscripts 2.20.2ubuntu2 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of devscripts or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: gpg 1.13.1-unknown has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: sysmontask 1.x.x has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of sysmontask or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: jsonf
Successfully installed jsonf-1.0

AntonSamokat avatar Jul 16 '24 07:07 AntonSamokat