# ModuleNotFoundError: No module named 'os.nosuch'; 'os' is not a package (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/modulenotfounderror-no-module-named-os-nosuch-os-is-not-a-package-python-3-12-10-windows-11-f92ed74fab0e
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, modulenotfounderror, import

import os.nosuch gave that; import nosuchmod -> "No module named 'nosuchmod'"; import nosuch.sub -> "No module named 'nosuch'". __import__('') -> ValueError: Empty module name; __import__(1) -> TypeError: module name must be a string.
