I am on PS3 #6a. I am in the ps3b.py file and I am getting the following error message:
Here is my ps3b.py file.
Any thoughts on the issue? Thanks much.
MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
As it says on line 7: "ImportError: No module named ps3a"
Apparently Python can't find the module you're trying to import stuff from, you could try to put them in the same folder.
I believe they are in the same folder. I've attached an image of the folder "Ps3". I haven't been able to figure out the issue. Any help would be great. Thanks.
This looks like command line and not idle. If you are loading in from a directory window it may not actually know the proper current directory and therefore not be able to find the file. You could try in idle or you could start a terminal, navigate to that directory then load ps3b and then the current directory will be where ps3a is. If this is not what you are already doing.
Not the answer you are looking for? Search for more explanations.
The other option, is to make the properties of it such that it starts in the proper directory which can be done in windows but im not sure on this on mac.
put the following at the very beginning of ps3b:
this should print the file location of ps3b.py
does it match where you thought it was? is that where ps3a is?