Message 1 of 3
[Maya 2022] No module named 'xxx' even if the script is in the same folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hí!
Everything works perfectly in Maya 2020, but when I try to run the same script in Maya 2022, I get the following error:
__init__.py
__init__.py
# import startup.setup as setup
# ModuleNotFoundError: No module named 'startup' #
The hierarchy of my scripts is as follows:
RootFolder:
|--- startup\
| |--- setup.py
|--- __init__.py
I'm getting the error on the import of __init__.py, which doesn't seem to be finding the path startup\setup.py
As I already said, there's no error in Maya 2020, but my sys.path seems to be exactly the same in both cases.
Any idea what may be happening? Could It be some change from Python3 that I'm not taking into account?
Thanks!