Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModuleNotFoundError
#4
Well, the . should traverse the directories (maybe you can use more than one?), and the final 'name', should be the Python file, but I've never gone more than one deep, with directory names.



to add...

I've just done from rob.rob1.rob2 import hello which works on my system, each name.name.name are the directory names.
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply


Messages In This Thread
ModuleNotFoundError - by Kjaglewicz - Aug-22-2022, 10:24 PM
RE: ModuleNotFoundError - by rob101 - Aug-23-2022, 01:20 AM
RE: ModuleNotFoundError - by Kjaglewicz - Aug-23-2022, 01:23 AM
RE: ModuleNotFoundError - by rob101 - Aug-23-2022, 01:36 AM
RE: ModuleNotFoundError - by rob101 - Aug-23-2022, 01:47 AM
RE: ModuleNotFoundError - by snippsat - Aug-23-2022, 11:39 AM

Forum Jump:

User Panel Messages

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