haddocking / pdb-tools

A dependency-free cross-platform swiss army knife for PDB files.
https://haddocking.github.io/pdb-tools/
Apache License 2.0
390 stars 114 forks source link

Issue with doctools.py #111

Closed andrewsb8 closed 3 years ago

andrewsb8 commented 3 years ago

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):

joaomcteixeira commented 3 years ago

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

JoaoRodrigues commented 3 years ago

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?

andrewsb8 commented 3 years ago

It does not persist in python 3.9.7, thanks.

JoaoRodrigues commented 3 years ago

👍 looking forward to that new tool request :)

joaomcteixeira commented 3 years ago

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

andrewsb8 commented 3 years ago

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