We have a python script + associated modules on a network drive. We are running this script simultaneously from several computers at once.
Sometimes one of them randomly fails with an error like this:
Traceback (most recent call last):
File "\\chifs02.int.tt.local\group\Development\Server Products\Automation\repos\mksutils\fetch.py", line 16, in <module>
from scripts import write_set_environment
NameError: Can't find file for module scripts
(filename \\chifs02.int.tt.local\group\Development\Server Products\Automation\repos\mksutils\scripts.pyc)
One oddity that I noticed was that the .py file was last modified months ago, but the .pyc is only hours old, despite being run at least daily since then.
I have never seen this NameError: Can't find file for module scripts
error before, and Google isn't being much help.
All computers involved are running Windows.