Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
module not found, is ok?
#1
I created a own __init__.py which call in a script.
Works just fine.

However, I renamed a module (all to lowercase), so a script obviously doesn't find the module.

Which raised the question, do you try to catch this error? o
import mymodule
if mymodule.MyFunc:
       # MyFunc doesn't exist. myfunc does
or is this a case of 'you have to code correct'?
Reply


Messages In This Thread
module not found, is ok? - by 3Pinter - Nov-24-2020, 02:49 PM
RE: module not found, is ok? - by Larz60+ - Nov-24-2020, 04:45 PM
RE: module not found, is ok? - by 3Pinter - Nov-24-2020, 05:17 PM
RE: module not found, is ok? - by bowlofred - Nov-24-2020, 05:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyside6 module not found ForeverNoob 4 1,440 Aug-18-2023, 04:36 PM
Last Post: snippsat
  Module Not Found Error bitoded 4 1,423 Jan-01-2023, 09:08 AM
Last Post: bitoded
  pdfminer package: module isn't found Pavel_47 25 9,052 Sep-18-2022, 08:40 PM
Last Post: Larz60+
  Module not found question sighhhh12 0 1,510 Sep-09-2022, 05:43 AM
Last Post: sighhhh12
  [SOLVED] Tkinter module not found Milan 7 24,570 Aug-05-2022, 09:45 PM
Last Post: woooee
  No module found when I run a main.py tomtom 2 1,487 Jul-20-2022, 09:24 AM
Last Post: tomtom
  No Module found in other directory than source code [SOLVED] AlphaInc 1 2,073 Nov-10-2021, 04:34 PM
Last Post: AlphaInc
  KafkaUtils module not found on spark 3 pyspark aupres 2 7,405 Feb-17-2021, 09:40 AM
Last Post: Larz60+
  'urllib3' Module not found when import 'requests' spanz 5 10,318 Jan-06-2021, 05:57 PM
Last Post: snippsat
  no module named finbert found ErnestTBass 4 4,617 Dec-05-2020, 06:09 PM
Last Post: andrianas

Forum Jump:

User Panel Messages

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