Hi,
We running V-Ray from an arbitrary location, and when we submit the job on the renderfarm, we have :
[2011/Nov/29|20:37:01] V-Ray: Total time translating scene for V-Ray 0h 0m 4.4s (4.4 s)
Error: line 0: No module named vray.pluginmodifier
# Traceback (most recent call last):
# File "", line 1, in
# File "/prod/exe/vray/vray2-nightly-20111112/autodesk/maya2011-x64/vray/scripts/vrayExecPostTranslateScript.py", line 5, in
# import vray.pluginmodifier
# ImportError: No module named vray.pluginmodifier
It is because the PYTHONPATH is not changed.
Question : do we need to change the PYTHONPATH to /prod/exe/vray/vray2-nightly-20111112/autodesk/maya2011-x64/vray/scripts/ ?
It should not be necessary to change the PYTHONPATH; from my experiments, changing MAYA_SCRIPT_PATH should be enough as Maya automatically adds the directories from the MAYA_SCRIPT_PATH to the PYTHONPATH variable.
As a last resort you could change the PYTHONPATH, but this caused other issues (PYTHONPATH specified in Maya.env was in that case ignored).
I am experiencing the same issue when running V-Ray from an arbitrary location.
I have tried adding the /maya_vray/scripts/vray path to MAYA_SCRIPT_PATH but I still get that same error.
Then I tried adding that path to PYTHONPATH instead but that didn’t make any difference.
Bigboss, did you come to a solution?
Edit: I’m running the 22697 nightly build (2013-01-31).
So, just to be clear, I’m getting that error when I try to write .vrst files using the latest nightly using the Post Translate Python script provided in the readme.txt that comes with the .vrst/deep Nuke plugin - and when running V-Ray for Maya from an arbitrary installation. It’s currently prohibiting us from writing .vrst files out of V-Ray.
I have exactly the same problem with Maya 2018 SP5 on linux and vray v.3.60.05 (28953)
Tried the PYTHONPATH “You need to set it to both the maya_vray/scripts folder AND the maya_vray/scripts/vray folder.” solution but it doesn’t work here. Any other solutions?