haddocking/pdb-tools

Issue with doctools.py

andrewsb8 opened this issue · 6 comments

Describe the bug
Was finished working on a new tool proposal. Went to run doctools.py to update documentation. The script does not run and I get different error messages for python and python3. I checked that this is not a package import issue in either version.

To Reproduce
Steps to reproduce the behavior. Preferrably, a code snippet.

$ python doctools.py

  File "doctools.py", line 13
    print(template.read(), file=handle)
                               ^
SyntaxError: invalid syntax

----------------------------------------------------------------

$ python3 doctools.py

  File "doctools.py", line 25
    tool = importlib.import_module(f'pdbtools.{name}')
                                                    ^
SyntaxError: invalid syntax

Expected behavior
This file should execute and update documentation.

Desktop (please complete the following information):

  • OS: Ubuntu 16.04 LTS
  • Python Version: 2.7.12, 3.5.2

Hi @andrewsb8 ,
I believe you are in the wrong repository. Anyway, nice to have you here :-) Cheers

I reopened this because doctools.py is indeed a script of ours, in docs/. @andrewsb8, could you upgrade to a more recent Py3 version (3.7+) and see if the error persist?

It does not persist in python 3.9.7, thanks.

👍 looking forward to that new tool request :)

Sorry @andrewsb8 for my lapse, i didn't really see the pdbtools in the paste text and realised about doctools. 🤯

No problem! Appreciate you reopening and getting back to me!