I’m trying to run the source code to test it, but unfortunately I’m not familiar with hylang (and low familiarity with python).
I’ve (or at least attempted to) installed hy and matplotlib and tried to run “hy main.hy” (is that the way you are supposed to run it?):
I get an error in line 105 when I run that:
(return 1)) ^hy.errors.HySyntaxError: parse error for pattern macro ‘if’: got unexpected token: hy.models.Expression([ hy.models.Symbol(‘return’), hy.models.Integer(1)]), expected: end of file
Anyone know what I’m doing wrong?
Are you running the same version of hy and python3 that I am?
$ hy main.hy is indeed the standard way or running the code. An alternative method is available here.
$ hy main.hy
(cleaned up with edits) OK, I was running:
hy 1.0a3
matplotlib 3.4.3
python 3.9.0
And thanks, after the following it worked, no need to change the others:
pip3 uninstall hy
pip3 install—user hy==0.20.0
Whelp. Looks like I need to update my own hy after this game is over.
I’m trying to run the source code to test it, but unfortunately I’m not familiar with hylang (and low familiarity with python).
I’ve (or at least attempted to) installed hy and matplotlib and tried to run “hy main.hy” (is that the way you are supposed to run it?):
I get an error in line 105 when I run that:
(return 1))
^
hy.errors.HySyntaxError: parse error for pattern macro ‘if’: got unexpected token: hy.models.Expression([
hy.models.Symbol(‘return’),
hy.models.Integer(1)]), expected: end of file
Anyone know what I’m doing wrong?
Are you running the same version of hy and python3 that I am?
$ hy main.hy
is indeed the standard way or running the code. An alternative method is available here.(cleaned up with edits) OK, I was running:
hy 1.0a3
matplotlib 3.4.3
python 3.9.0
And thanks, after the following it worked, no need to change the others:
pip3 uninstall hy
pip3 install—user hy==0.20.0
Whelp. Looks like I need to update my own hy after this game is over.