ModuleNotFoundError: No module named 'my_module'

59 views
Skip to first unread message

Adora

unread,
May 22, 2024, 8:25:19 PM5/22/24
to PyInstaller
KakaoTalk_20240523_092039334.png

Why can't main.py recognize scrap_crawlers.py ??

bwoodsend

unread,
May 23, 2024, 8:15:15 AM5/23/24
to PyInstaller

Because its real name is scraper.scrap_crawlers. (And please get rid of that os.chdir(). It shouldn’t be there.)

Samuel Aondo

unread,
Jun 1, 2024, 11:05:00 AM6/1/24
to PyInstaller
Hey i found this custom tool you can use to avoid the above problems .You need to have pyinstaller and it will solve issues like bootlcale module not found https://github.com/sazalo101/py-to-exe-or-linux-executable/
Reply all
Reply to author
Forward
0 new messages