Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: invalid syntax #388

Open
debanjansen48 opened this issue Sep 25, 2022 · 1 comment
Open

SyntaxError: invalid syntax #388

debanjansen48 opened this issue Sep 25, 2022 · 1 comment

Comments

@debanjansen48
Copy link

$ python2 convert.py -h
Traceback (most recent call last):
File "convert.py", line 13, in
import intermol.gromacs as gmx
File "/home/anaconda3/envs/intermol/lib/python2.7/site-packages/intermol/gromacs/init.py", line 112
logger.error(f'grompp failed with error code {proc.returncode} See {stderr_path}')
^
SyntaxError: invalid syntax

@mattwthompson
Copy link
Collaborator

Hi @debanjansen48 - Python 2 has been EOL since January 1, 2020 and is no longer supported I'm not sure what what point InterMol stopped supporting Python 2 but we can can only help with Python 3 code. Make sure you upgrade your scripts to Python 3 (ideally 3.8 or newer following NEP 29) and, while using conda environments, invoke python with an executable provided by the conda environment. (If you're not sure, run which python and look at the path to that executable.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants