Hey all, I’ve been trying to use a python script as a post task script inside deadline monitor. I’ve used numpy and imageio (which also uses numpy) in my script. However, when running, I’m constantly getting this error saying:
SyntaxError : ('invalid syntax', ('C:\\users\\render1\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\numpy\\init.py', 164, 35, ' raise ImportError(msg) from e\n')) (FranticX.Scripting.PythonNetException)
for clarity, this is what line 164 is saying:
Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
I’ve tried passing the address of sitepackages folder directly or using a fresh virtual environment and passing the address to deadline. But I get the same error every time.
What am I missing here? how do I go about importing these well known packages inside deadline like numpy and pandas?