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 'encodings' grunge10111 1 70 May-29-2020, 02:22 AM
Last Post: Larz60+
  No module named 'flask_mysqldb' onuruca 2 1,410 Mar-13-2020, 02:20 PM
Last Post: onuruca
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 838 Mar-09-2020, 08:20 PM
Last Post: micseydel
  ModuleNotFoundError: No module named ‘CommandNotFound’ jiapei100 5 817 Feb-22-2020, 08:34 PM
Last Post: snippsat
  Can a module be executed even if the computer running it does not install it? CFYB 5 299 Feb-08-2020, 01:56 PM
Last Post: snippsat
  ModuleNotFoundError: No module named 'xxxx' darpInd 2 645 Feb-06-2020, 11:33 AM
Last Post: darpInd
  'No module named tkinter.messagebox' - PyInstaller ironfelix717 7 609 Jan-19-2020, 06:56 AM
Last Post: buran
  Running function from parent module which has a loop in it. ta2909i 1 267 Nov-18-2019, 07:04 PM
Last Post: Gribouillis
  ModuleNotFoundError: No module named 'pygame' Cath 3 4,963 Oct-18-2019, 05:59 PM
Last Post: metulburr
  ModuleNotFoundError: No module named '...' tlg265 1 2,255 Oct-09-2019, 06:47 PM
Last Post: maxtimbo

Forum Jump:

Users browsing this thread: 1 Guest(s)