Python Forum
Python ModuleNotFoundError: No module named 'sender_model' when running an Alembic mi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python ModuleNotFoundError: No module named 'sender_model' when running an Alembic mi
#1
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

[Image: Capture.png]



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

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

[Image: manage.png]

here the senders.py in the app/API

[Image: sender.png]

here the sender_model.py in the app/models

[Image: sender-model.png]

and finally here is myapp.py in the app package

[Image: myapp.png]
Reply
#2
If you're willing to follow Larz60+'s instructions, we're still willing to help :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using moviepy fails due to "ModuleNotFoundError: No module named 'pip._internal.utils sheepog 2 2,478 May-28-2025, 06:57 PM
Last Post: sheepog
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 3 5,231 May-10-2025, 05:56 PM
Last Post: Wimpy_Wellington
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 6,422 Apr-06-2025, 07:56 PM
Last Post: Edward_
  No module named 'importlib.metadata' EdVS 3 3,256 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named 'athena_read' raman 2 2,385 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 9,319 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 35,248 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 16,086 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 7,271 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 5,414 Aug-07-2023, 05:32 AM
Last Post: DPaul

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020