Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

tcc8m Group Title

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.

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. Recursing Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  2. tcc8m Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  3. msmithhnova Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  4. msmithhnova Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  5. bwCA Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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

    • 2 years ago
  6. tcc8m Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks everyone.

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.