Not able to run Julia through python on a server in a frontend type application

We have fixed this issue now. I am leaving this here for anyone who gets this issue.

Essentially what happened was that I had installed Julia 1.8 in the beginning. But I had some issues with it so I uninstalled it, deleted the folder, and removed the environment variables. Then I installed Julia 1.7 and all the required libraries. I also added it to the environment variables. I tested it many times and it worked fine.

But, when the frontend script was calling the Julia code, it was calling 1.8 and not 1.7. I don’t know how this happened but always be sure that your frontend script is calling the correct version.

This error was also not obvious from the stack trace and hence it took us some time to figure it out.