Re: [IronPython] Logging module error
Seo Sanghyeon wrote: 2008/12/2 Deepali Abhyankar [EMAIL PROTECTED]: (logging and _getframe) Please suggest solution to resolve this https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/stdlib/2.4.4/patch-stdlib-logging-getframe Seo - you're still alive! How about an updated release of FePy? :-) Michael -- http://www.ironpythoninaction.com/ ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Logging module error
2008/12/2 Deepali Abhyankar [EMAIL PROTECTED]: (logging and _getframe) Please suggest solution to resolve this https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/stdlib/2.4.4/patch-stdlib-logging-getframe -- Seo Sanghyeon ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Logging module error
Hello Deepali, sys._getframe is not available in IronPython. If you post the relevant section of code from the logging module we may be able to suggest a patch / workaround (disabling some functionality may be the way forward - but often getframe is used to find a trivial bit of information that can be supplied another way). All the best, Michael Foord Deepali Abhyankar wrote: Hi I am using Iron Python 2.0 release candidate 2. I am using logging module *Code is*: Import logging logger = logging.getLogger(Trial) logger.setLevel(logging.INFO) hdlr = logging.FileHandler(data.txt,w) hdlr.setLevel(logging.INFO) formatter = logging.Formatter(%(asctime)s-%(name)s-%(message)s) hdlr.setFormatter(formatter) logger.addHandler(hdlr) logger.info(message) *I am facing following error on execution * * * File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 985, in i nfo File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 1094, in _log File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 1063, in findCaller File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 71, in l ambda$1 ValueError: _getframe is not implemented for non-zero depth Please suggest solution to resolve this *Deepali Abhyankar **|** Senior Software Engineer**|** Persistent Systems* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* **| **Tel: +91 (20) 3023 5040* *Innovation in software product design, development and delivery- **www.persistentsys.com* http://www.persistentsys.com/** DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- http://www.ironpythoninaction.com/ ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] Logging module error
Hi I am using Iron Python 2.0 release candidate 2. I am using logging module Code is: Import logging logger = logging.getLogger(Trial) logger.setLevel(logging.INFO) hdlr = logging.FileHandler(data.txt,w) hdlr.setLevel(logging.INFO) formatter = logging.Formatter(%(asctime)s-%(name)s-%(message)s) hdlr.setFormatter(formatter) logger.addHandler(hdlr) logger.info(message) I am facing following error on execution File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 985, in i nfo File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 1094, in _log File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 1063, in findCaller File C:\Program Files\IronPython 2.0\Lib\logging\__init__.py, line 71, in l ambda$1 ValueError: _getframe is not implemented for non-zero depth Please suggest solution to resolve this Deepali Abhyankar | Senior Software Engineer| Persistent Systems mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] | Tel: +91 (20) 3023 5040 Innovation in software product design, development and delivery- http://www.persistentsys.com/ www.persistentsys.com DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Logging module error
Seo: Yes, please, make a new release as soon as you can. I have uploaded the IPy-compatible version of adodbapi to the trunk, and it needs 2.0 to work correctly. The 2.0 installer from MS is nice, but the batteries included version from FePy will be nicer. -- Vernon On Tue, Dec 2, 2008 at 6:01 AM, Michael Foord [EMAIL PROTECTED]wrote: Seo Sanghyeon wrote: Seo - you're still alive! How about an updated release of FePy? :-) Michael -- http://www.ironpythoninaction.com/ ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Logging module error
Thanks Seo For Logging Module to work, I added the code in '__Init__.py', suggested at URL, given by you Code added in __Init__.py file of Logging module if not hasattr(sys, _getframe): _srcfile = None if sys.platform == 'cli': _srcfile = None Thanks and Regards Deepali -Original Message- From: Seo Sanghyeon [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 6:27 PM To: [EMAIL PROTECTED]; Discussion of IronPython Subject: Re: [IronPython] Logging module error 2008/12/2 Deepali Abhyankar [EMAIL PROTECTED]: (logging and _getframe) Please suggest solution to resolve this https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/stdlib/2.4.4/patch-stdlib-logging-getframe -- Seo Sanghyeon DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com