Re: Windows automatic rebooting due to faulty code
On Sat, May 24, 2014 at 12:56 AM, Ronak Dhakan ronaksoni...@gmail.com wrote: I am learning python, and sometimes when I run a file with a faulty, windows gives a message that the system is rebooting and gives me 1 minute to save my work. Does anyone know how can I fix this? Most of the time a faulty code gives errors in python, but this is unique. I create files like Exercise 1.2.py and run it through IDLE. I'm very much surprised that any Python coding error could do this. What code triggers this? Is it consistent? More likely it's something else in your system. Pure coincidence. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On Friday, May 23, 2014 8:34:31 PM UTC+5:30, Chris Angelico wrote: On Sat, May 24, 2014 at 12:56 AM, Ronak Dhakan wrote: I am learning python, and sometimes when I run a file with a faulty, windows gives a message that the system is rebooting and gives me 1 minute to save my work. Does anyone know how can I fix this? Most of the time a faulty code gives errors in python, but this is unique. I create files like Exercise 1.2.py and run it through IDLE. I'm very much surprised that any Python coding error could do this. What code triggers this? Is it consistent? More likely it's something else in your system. Pure coincidence. ChrisA Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon. There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On Sat, May 24, 2014 at 1:26 AM, Ronak Dhakan ronaksoni...@gmail.com wrote: Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon. Aim for consistency and reproducibility. Figure out something that always brings Windows down. More importantly... *tell us what modules you are using*. What draws a polygon here? What are you working with? That's kinda critical here, especially if (as I suspect) it's not part of the Python standard library. There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ Solution: Get off Google Groups. Subscribe to python-list@python.org and read it all in your email client, or read comp.lang.python in a real newsreader. That'll fix several other problems too. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On Friday, May 23, 2014 9:06:32 PM UTC+5:30, Chris Angelico wrote: There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ Solution: Get off Google Groups. Subscribe to python-list@python.org and read it all in your email client, or read comp.lang.python in a real newsreader. That'll fix several other problems too. Or read and follow: https://wiki.python.org/moin/GoogleGroupsPython -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd I was thinking whether there is a way to run python in a virtual environment. -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On May 23, 2014 12:12 PM, Ronak Dhakan ronaksoni...@gmail.com wrote: It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd I was thinking whether there is a way to run python in a virtual environment. -- https://mail.python.org/mailman/listinfo/python-list Try on different machine. Maybe hardware or driver issue -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On Saturday, May 24, 2014 12:08:24 AM UTC+8, Ronak Dhakan wrote: It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd I was thinking whether there is a way to run python in a virtual environment. Check colinux or VMWARE. -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On 5/23/2014 12:08 PM, Ronak Dhakan wrote: It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd from swampy.TurtleWorld import * world = TurtleWorld() This is not the turtle module in the stdlib. It is most like the source of your reboot problem. Report your problem to the author. Also try running your example in the Windows console. (Not nearly as nice, I know.) There might possibly be a bad interaction with Idle. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On 05/23/2014 09:26 AM, Ronak Dhakan wrote: Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon. There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ Almost certainly you are experiencing a hardware fault. Possibly bad RAM. Windows will not let user-space code crash the operating system. Though user-space code could trigger something in the kernel that then faults. This is likely what's happening here. But the real cause is probably hardware. If it's not RAM, then it might be video hardware failing. -- https://mail.python.org/mailman/listinfo/python-list
Re: Windows automatic rebooting due to faulty code
On 24-5-2014 0:54, Michael Torrie wrote: On 05/23/2014 09:26 AM, Ronak Dhakan wrote: Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon. There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ Almost certainly you are experiencing a hardware fault. Possibly bad RAM. Windows will not let user-space code crash the operating system. Though user-space code could trigger something in the kernel that then faults. This is likely what's happening here. But the real cause is probably hardware. If it's not RAM, then it might be video hardware failing. Or the computer has been infected by malware. -I. -- https://mail.python.org/mailman/listinfo/python-list