Python - 找不到记录器“OpenGL.error"的处理程序; [英] Python - No handlers could be found for logger "OpenGL.error"

查看:25
本文介绍了Python - 找不到记录器“OpenGL.error"的处理程序;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,它是什么,为什么它会出现在 Win2003 服务器上,而不会出现在 WinXP 上.

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 close the application. And it's annoying (as errors messages should be).

我正在使用 pyOpenGl 和 wxPython 来处理图形.不幸的是,我是一个 C# 程序员,接手了这个 Python 应用程序,我必须学习 Python 才能做到.

I am using pyOpenGl and wxPython to do the graphics stuff. Unfortunately, I'm a C# programmer that has taken over this Python app, and I had to learn Python to do it.

我可以提供代码和版本号等,但我仍在学习技术方面的内容,因此我们将不胜感激.

I can supply code and version numbers etc, but I'm still learning the technical stuff, so any help would be appreciated.

Python 2.5、wxPython 和 pyOpenGL

Python 2.5, wxPython and pyOpenGL

推荐答案

看起来 OpenGL 正在尝试在 Win2003 上报告一些错误,但是您还没有配置系统输出日志信息的位置.

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

您可以将以下内容添加到程序的开头,您将在 stderr 中看到错误的详细信息.

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()

签出关于 logging 模块的文档以获取更多配置信息,概念上是相似的到 log4J.

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

这篇关于Python - 找不到记录器“OpenGL.error"的处理程序;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆