Forums

Running a rust binary in Pythonanywhere

Hi, I know it's "python" anywhere but I was hoping I could run a rust binary as a scheduled task. Unfortunately, when I run my binary, I get the following error:

Error while loading shared libraries: /usr/local/lib64/libssl.so.1.1

Trying to fix this using the lddconfig command gives me a permission error. Is something that's possible to do in pythonanywhere or should I look for an alternative?

Have you compiled your code on Pythonanywhere?

No, I did not -- I was hoping I could just compile on my personal computer and then send over the binary, since it appears that the PA environments don't contain cargo or rustc. However if you have a suggestion for how I could compile it on PA if you think that would fix the issue, I would be happy to hear it! Thanks.

Looks like you would need to install the toolchain first, and I'm not sure if it's possible.