How to silence “sys.excepthook is missing” error?

后端 未结 4 2037
再見小時候
再見小時候 2020-12-02 16:59

NB: I have not attempted to reproduce the problem described below under Windows, or with versions of Python other than 2.7.3.

The most reliable way to elicit the pro

4条回答
  •  心在旅途
    2020-12-02 17:33

    I realize that this is an old question, but I found it in a Google search for the error. In my case it was a coding error. One of my last statements was:

    print "Good Bye"
    

    The solution was simply fixing the syntax to:

    print ("Good Bye")
    

    [Raspberry Pi Zero, Python 2.7.9]

提交回复
热议问题