Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help on ModuleNotFoundError
#1
I cant seem to get import commands to work unless I'm working from the same folder as the file I want to import. What is puzzling is that sys.path lists the directory i want to target, in which I have even created the __init__.py file, yet the import statement is red-lined by the editor and the run fails. Can someone shed some light on what may be causing this behaviour?

Thank you
Reply


Forum Jump:

User Panel Messages

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