ID 605886 - Katana Callbacks module reports no __spec__ defined when imported

Follow

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__'
 
Workaround
Importing the module using the following command: from Katana import Callbacks allows the module to be imported without error.
 
Reproduced by support
This bug has been reproduced in:
Katana 8.0v4 - Windows 11 / Rocky 9
Katana 8.0v1 - Windows 11 / Rocky 9
 
Unable to reproduce bug in:
Below versions reports ModuleNotFoundError: No module named 'Katana.Callbacks'
Katana 7.5v4 - Windows 11 / Rocky 9
Katana 7.0v6 - Windows 11 / Rocky 9
Katana 6.5v7 - Windows 11 / Rocky 9
Katana 6.5v1 - Windows 11 / Rocky 9
Katana 6.0v6 - Windows 11 / Rocky 9
 
Earliest version tested
Katana 6.5v1- This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why