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

查看:73
本文介绍了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来做图形工作.不幸的是,我是一个接管了此Python应用程序的C#程序员,我必须学习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()

日志记录模块上的结帐文档,以获取更多配置信息,从概念上讲,这是相似的到log4J.

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

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

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