Skip to content

martinate.sh requires python 2 while martinize2 requires python 3 #28

@OLaprevote

Description

@OLaprevote

martinate.sh contains some python lines using print statements, which is not compatible with python 3 and WILL make martinate.sh crash if using python 3. Meanwhile, vermouth package for getting martinize2 and working with martini3 forcefield is only supported by python >= 3.6 (see its setup.cfg).

This makes the example lines given in Martini3 paper impossible to run when downloading current gromit (e.g. martinate.sh -f 2oar.pdb -fetch opm --insane-d=5 --insane-l=DPPC --insane-sol=W -martinize /path/to/martinize2).

Replacing all spaces by parenthesis in all python print statements of .sh scripts, and using 2to3 -w forcefield to automatically update python scripts from python 2 to pyhon 3 makes the trick. (See Pull request #25.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions