anonymous
  • anonymous
I am on PS3 #6a. I am in the ps3b.py file and I am getting the following error message: http://pastebin.com/F2BAwTmc Here is my ps3b.py file. http://pastebin.com/7gFfJ8wJ Any thoughts on the issue? Thanks much.
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
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.
anonymous
  • anonymous
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.
anonymous
  • anonymous
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.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
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.
anonymous
  • anonymous
put the following at the very beginning of ps3b: import sys print sys.path[0] this should print the file location of ps3b.py does it match where you thought it was? is that where ps3a is? http://docs.python.org/library/sys.html#sys.path
anonymous
  • anonymous
Thanks everyone.

Looking for something else?

Not the answer you are looking for? Search for more explanations.