0

I want to execute a file on Analytics zoo but this file uses functions from other files in different subdirectories .

I am getting this error:

LogType:stdout LogLastModifiedTime:Tue Jun 15 06:43:07 -0500 2021 LogLength:157 LogContents: Traceback (most recent call last):   File "main.py", line 7, in <module>
    from args import define_main_parser ModuleNotFoundError: No module named 'args'

End of LogType:stdout

Here args.py is a separate file (I provided this file path in --py-files while spark file submission)

1 Answers1

0

Please try to add your module to the PYTHONPATH environment variable using export PYTHONPATH=$PYTHONPATH:/path/to/your/modules on the driver node.