Python ImportError: No module named …


from MY_FOLDER.MY_FILE import MY_CLASS causes an error:
ImportError: No module named MY_FOLDER.MY_FILE


  1. Execute the program in debug mode,
  2. In the Variables window expand Special Variables,
  3. Read the __warningregistry__ value.

Possible cause:

The file is missing in the directory of the referenced class.


Create an empty file in the directory where the class is referenced from.

Leave a comment

Your email address will not be published. Required fields are marked *