Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

David_Novo

  • 2 years ago

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.

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

    Anyone?

  2. bwCA
    • 2 years ago
    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

  3. sontung1404
    • 2 years ago
    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

  4. bwCA
    • 2 years ago
    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

  5. David_Novo
    • 2 years ago
    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/

  6. bwCA
    • 2 years ago
    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

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

    kinda cool

  8. bwCA
    • 2 years ago
    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

  9. David_Novo
    • 2 years ago
    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".

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

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

  11. David_Novo
    • 2 years ago
    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.

  12. bwCA
    • 2 years ago
    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/

  13. bwCA
    • 2 years ago
    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

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

    It is working now thanks.

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

    what was it??

  16. David_Novo
    • 2 years ago
    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.

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

    :)

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

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

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.