Skip to content

Instantly share code, notes, and snippets.

@marcorichetta
Created August 6, 2020 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcorichetta/3b79fa0c6ab290613492744008909cba to your computer and use it in GitHub Desktop.
Save marcorichetta/3b79fa0c6ab290613492744008909cba to your computer and use it in GitHub Desktop.
ModuleNotFoundError en python

Al obtener el error:

from main import app
E   ModuleNotFoundError: No module named 'main'
  1. Fijarse si existen __init__.py dentro de los directorios
  2. Agregar "." al path donde importamos from .main import app
  3. from os import sys => Ver sys.path por alguna mala configuración
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment