State:In Progress|TargetRelease:No Target|icon_bug|icon_katana|database:public|Resolution:Fixed|BugID:605886|
Problem summary
Katana Callbacks module reports no __spec__ defined when imported
Customer reported version
Katana 8.0v4
Customer reported platform
Alma 9
Steps to reproduce
1) Launch Katana and open the Python Tab
2) Run the following command: import Katana.Callbacks as Callbacks
3) Observe the below error.
Expected behaviour
The module should import without reporting any errors.
Actual behaviour
Katana reports an AttributeError:
File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1136, in _find_and_load_unlocked File "VirtualKatana.py", line 340, in __getattr__ AttributeError: module 'Katana' has no attribute '__spec__' from Katana import Callbacks allows the module to be imported without error.ModuleNotFoundError: No module named 'Katana.Callbacks'We're sorry to hear that
Please tell us why