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

Error when testing with example files #9

Open
focusonskills opened this issue Jun 22, 2020 · 3 comments
Open

Error when testing with example files #9

focusonskills opened this issue Jun 22, 2020 · 3 comments

Comments

@focusonskills
Copy link

HI, I encountered the following error when testing with your example data after installation. Do you know what caused the issue and is it caused by inproper installation?
Thanks!

File "/opt/galig/asgal", line 54
eprint(f"command: '{' '.join(command)}'")
^
SyntaxError: invalid syntax

@ldenti
Copy link
Member

ldenti commented Jun 23, 2020

Hi,
unfortunately I cannot replicate your error. Can you please tell me:

  • your OS
  • the (point) version of python3 you are using
  • how do you invoke asgal: do you run python3 asgal or just ./asgal?

In the meantime, can you try running the asgal script with python3 asgal [...]? If it's doesn't work, can you try to change the first line of the asgal script from

#!/usr/bin/env python3

to

#!/usr/bin/python3

and the rerun the script on the example data?

@focusonskills
Copy link
Author

focusonskills commented Jun 23, 2020 via email

@ldenti
Copy link
Member

ldenti commented Jun 24, 2020

Hi,
the problem is that f-strings have been introduced in python3.6 (see here). Therefore, the current version of the asgal script cannot work with previous versions of python (thank you for pointing this out, I'll better specify it in the README and the website).

So, if you can use python>=3.6, it would be perfect. Otherwise, I need to translate all the f-strings to the older .format().

Let me know, in case I can provide you a patch or something similar.

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