Hello, has anyone been able to successfully use PyPy? I am trying to include the binary with my algo but I do not have permission to execute it from run.sh.
I haven’t done it. Not sure about solutions but I’ve seen some other posts about needing to add chmod u+x $DIR/[BINARY_FILE]
to run.sh file to make binaries executable.
Other than that maybe a possible workaround would be to try and call it from a regular python file using subprocess and piping.
Thanks chmod u+x fixed the permission error but now we are getting a new error when running $DIR/pypy3 -u “$DIR/algo_strategy.py”
Player 1 Errors:
error: unknown command “/tmp/algo1245107989080172816/algo_strategy.py”, see ‘snap help’
Have you seen this error before?
I believe you have the wrong file/folder you are calling. Rather than using "$DIR/algo_strategy.py"
you would instead use the folder name containing algo_strategy.py
the same way you would locally. So: "$DIR/[FOLDER]
.
This is when running it on the server, so I copied how algo_strategy.py is called in run.sh. Locally I am able to complete games with pypy