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

David_Novo Group Title

Why does Python crash when I run PS5 (Spring 2011)? When I run the test everything is ok. I've done everything except part 4 (user-specified triggers) and it says that it should work by now.

  • 2 years ago
  • 2 years ago

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

    Anyone?

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

    you didn't post your code. the question you asked probably wasn't what you intended. if it should work it should work so something is wrong and if you want us to de-bug or troubleshoot it for you, you need to post your code and ask more specific questions. i imagine that anyone reading this forum that isn't posting a similar question does not have a problem with their ps5 solutions

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

    @David Can you provide more information by adding some code Just copy your code and paste it here like `YOUR_CODE_HERE` Then we'll be able to help you

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

    pls use a code pasting site like: http://dpaste.com http://pastebin.com http://codepad.org select Python for syntax hi-lighting

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

    Sorry for the delay but wasn't able to post it sooner. http://dpaste.com/794541/

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

    what is not happening? I got two news stories as soon as i ran it then it slept and polled and slept and ........... seems to be working

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

    kinda cool

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

    i can change the triggers in the main_thread function and get different stories

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

    I just completed the last part (Part 4 - http://dpaste.com/795168/ ) and I stil have the same problem. When I run it,it says ''Python has stop working".

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

    I already added '()' in line 336 but it still crashes.

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

    Can it crash if it returns too many news? It appears to crash when I use 'Syria' as a trigger.

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

    it is not crashing when i use it with Syria as a trigger - i am using v 2.7.2 I'm not getting any hits on Syria today here are my triggers http://dpaste.com/795200/

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

    try to play with it in the shell/idle use ctrl-c to stop the main loop and try to run the process function (see line 14 of this post) - http://dpaste.com/795203/ then you can see if that is working

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

    It is working now thanks.

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

    what was it??

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

    I am not sure. After I fixed the lack of brackets, I saved, closed and opened again and it was good to go.

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

    :)

    • 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.