forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
5.3 KiB
5.3 KiB
Notebook Instance Failed to Reference the .py File in the Same Directory
Symptom
After the user run the python a.py command in the Terminal environment of a notebook instance, the .py file in the same directory failed to be referenced, and the following error is reported:
ModuleNotFoundError: No module named 'b'.
Possible Cause
After running the ls command in Terminal to check the file directory, it is found that a.py and b.py are not in the same directory.
Solution
- Log in to the ModelArts management console, and choose .
- In the Operation column of the target notebook instance in the notebook list, click Open to go to the Jupyter page.
- On the Files tab page of the Jupyter page, select the a.py and b.py files, and click Sync OBS to synchronize the selected objects from the OBS bucket path to the current container directory ~/work. Then the objects can be invoked in code.
Parent topic: DevEnviron (Notebook of Old Version)