Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python ModuleNotFoundError: No module named 'sender_model' when running an Alembic mi
Import modules and packages causing a bit of issues - can anyone identify the main reason for my alembic migration would not run ?

  1. Python VERSION : 3.7.2
  2. I run THE pythons command on WINDOWS The App runs with no problem but the alembic migration will not migrate or upgrade
  3. Also i changed few time modules and packages names.

Here is my project Layout


When I run the command
python db migrate
I get he below error:

Traceback (most recent call last): File "", line 3, in from myapp import app, db File "C:\Repositories\sendeasy\app\", line 8, in from api.Senders import senders_api File "C:\Repositories\sendeasy\app\api\", line 3, in from sender_model import * ModuleNotFoundError: No module named 'sender_model'
Here is the in the app package.


here the in the app/API


here the in the app/models


and finally here is in the app package

Larz60+ wrote Nov-11-2019, 12:09 AM:
Please post all code, output and errors (in it's entirety) between their respective tags. Refer to BBCode help topic on how. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Refrain from using images.
If you're willing to follow Larz60+'s instructions, we're still willing to help :)
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'pygame' Cath 3 266 Oct-18-2019, 05:59 PM
Last Post: metulburr
  ModuleNotFoundError: No module named '...' tlg265 1 294 Oct-09-2019, 06:47 PM
Last Post: maxtimbo
  ImportError: No module named tkinter. kouadio 1 279 Oct-08-2019, 10:59 PM
Last Post: Larz60+
  ImportError: No module named xlrd dhiliptcs 5 523 Sep-21-2019, 12:17 PM
Last Post: brighteningeyes
  ModuleNotFoundError: No module named 'psutil' after creating .exe ? ABhishek 3 909 Jul-30-2019, 01:44 PM
Last Post: ABhishek
  'No module named pdf2image' ironfelix717 13 1,298 Jul-24-2019, 11:54 AM
Last Post: snippsat
  ModuleNotFoundError: No module named 'google.appengine' vanderdecken 0 1,144 Jul-23-2019, 06:31 AM
Last Post: vanderdecken
  TimeLapse Help - ImportError: No module named 'sh' evvvonder 4 500 Jun-28-2019, 10:52 PM
Last Post: evvvonder
  ImportError: No module named pymysql - On Apache2 for Python 2.7 on Mac Tyrone 9 1,019 Jun-12-2019, 07:08 PM
Last Post: Tyrone
  Application Run Error - No module named formencode Sable 0 289 Jun-11-2019, 07:50 AM
Last Post: Sable

Forum Jump:

Users browsing this thread: 1 Guest(s)