Python - No handlers could be found for logger “OpenGL.error”

后端 未结 3 1047
故里飘歌
故里飘歌 2020-11-27 16:21

Okay, what is it, and why does it occur on Win2003 server, but not on WinXP.

It doesn\'t seem to affect my application at all, but I get this error message when I cl

相关标签:
3条回答
  • 2020-11-27 16:54

    Looks like OpenGL is trying to report some error on Win2003, however you've not configured your system where to output logging info.

    You can add the following to the beginning of your program and you'll see details of the error in stderr.

    import logging
    logging.basicConfig()
    

    Checkout documentation on logging module to get more config info, conceptually it's similar to log4J.

    0 讨论(0)
  • 2020-11-27 17:07

    The proper way to get rid of this message is to configure NullHandler for the root level logger of your library (OpenGL).

    0 讨论(0)
  • 2020-11-27 17:10

    After adding the Logging above, I was able to see that the problem was caused by missing TConstants class, which I was excluding in the py2exe setup.py file.

    After removing the "Tconstants" from the excluded list, I no longer had problems.

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