pythonw.exe is not responding

前端 未结 2 418
遇见更好的自我
遇见更好的自我 2021-01-27 03:37

I have been learning Python2.7 for a little bit now. I\'m using Windows 7 64 bit BTW. I started learning GUI\'s and have been trying to use wxpython and IDLE for this. So I type

相关标签:
2条回答
  • 2021-01-27 04:20

    It seems that something might be polluting variables in the threading library, it looks like _sleep variable is being overwritten with an int value; in which case _sleep(x) will not work since _sleep is an int and ints are not callable.

    It may be in your client code or in some framework code or libraries you are importing. Is that all of the code?

    Try running this code from a plain python terminal, not from an IDE like IDLE.

    0 讨论(0)
  • 2021-01-27 04:28

    The crash is most likely happening at the point when you try and start the event loop. See this bug report: http://bugs.python.org/issue989712

    Seems someone else has gone as far to try and create an extension to handle this ability: http://idlex.sourceforge.net/extensions.html

    Basically, don't do this from IDLE. Write a script and run it from the shell or the script directly if in windows, by naming it with a .pyw extension and double clicking it. There is apparently a conflict between IDLE's own event loop and the ones from GUI toolkits.

    0 讨论(0)
提交回复
热议问题