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
  no module named 'docx' when importing docx MaartenRo 1 711 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 22,946 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,165 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,313 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,390 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,227 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 964 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 8,209 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 934 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,770 Oct-20-2022, 02:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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