gelpia
gelpia copied to clipboard
Invalid syntax error while using Gelpia for the first time
I get a invalid syntax error using gelpia for the first time after installation.
- I installed Gelpia for using "make requirements" and then "make".
- Afterwards I ran this command: "./bin/gelpia --function "x=[1,10]; y=[5,15]; x^2 + x*y" " and I got an exception that the "sly" module was not installed.
- Then I installed "sly" and after that I got the "SyntaxError: invalid syntax" error.
Here is the log:
./bin/gelpia --function "x=[1,10]; y=[5,15]; x^2 + x*y"
Traceback (most recent call last):
File "gelpia/gelpia/bin/function_to_lexed.py", line 16, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./bin/gelpia", line 7, in
Hello @rosaAbbasi,
Thanks for the report. This error occurred because sly uses f-strings which is a new feature in Python 3.6, however it appears based on your site-packages
that you are using Python 3.5.
I will update the requirements to state that Python 3.6+ is required.
Thanks, Mark