Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

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)
See more answers at brainly.com
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.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
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.

Ask your own question

Other answers:

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: 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
Thanks everyone.

Not the answer you are looking for?

Search for more explanations.

Ask your own question