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

I meet a syntax error when i build the hss, but it seems no wrong with the syntax, and i don't change anything. #54

Open
XianluoCat opened this issue Dec 30, 2022 · 1 comment

Comments

@XianluoCat
Copy link

File "tools/compression/hss-deflate.py", line 44
    def deflate(data: bytes, compression_level: int = 9) -> bytes:
                    ^
SyntaxError: invalid syntax
make: *** [envm-wrapper/Makefile:95: Default/hss-l2scratch.bin.deflate] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
@TommyMurphyTM1234
Copy link

Looks like the hss-deflate.py script may be getting invoked using Python 2 rather than Python 3. Python 2 doesn't support parameter typing hints, unlike Python 3. You should check your environment to see if that's the problem.

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