[issue7052] from logging import * causes an error under Ubuntu Karmic
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
New submission from Valery khame...@gmail.com: Hi all (I never filed a bug, so, I am not sure that all fields are OK) Anyway, here is the self explaining issue: $ python Python 2.6.3 (r263:75183, Oct 3 2009, 11:20:50) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. from logging import * Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute 'NullHandler' $ uname -a Linux vaktop 2.6.31-11-generic #38-Ubuntu SMP Fri Oct 2 11:55:55 UTC 2009 i686 GNU/Linux this issue blocks me badly :( regards -- Valery -- components: Library (Lib) messages: 93520 nosy: vak severity: normal status: open title: from logging import * causes an error under Ubuntu Karmic type: resource usage versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Valery khame...@gmail.com added the comment: I have just installed python2.5 in addition. And there is no this issue with it. So, it rather speific to python2.6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Ryan Leslie ryle...@gmail.com added the comment: Looks like a merge has gone bad. NullHandler has existed for a while on trunk but is not present in the 2.6.3 tag (__all__ was updated to include it, however): /python/tags/r263/Lib/logging/__init__.py -- nosy: +ryles ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - vinay.sajip nosy: +vinay.sajip priority: - critical stage: - needs patch type: resource usage - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Gregor Lingl gregorli...@users.sourceforge.net added the comment: The same True for captureWarnings? (It's also is only present in __all__) -- nosy: +gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Antoine Pitrou pit...@free.fr added the comment: Georg committed a fix but now we have: from logging import * Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute 'captureWarnings' -- nosy: +georg.brandl, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Gregor Lingl gregorli...@users.sourceforge.net added the comment: As stated above: the name captureWarnings is also present *only* in __all__. Same reason, same effect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Not quite sure what happened, yet. It may be, as Ryan said, that a merge went wrong somewhere. I've altered Lib/logging/__init__.py in release26-maint to remove captureWarnings from __all__. Note that the change which introduced captureWarnings and NullHandler was added on 03 Dec 2008 in r67511. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Noticed that the code in the r262 tag (dated 13 Mar 2009) seems OK. I don't know how to find out how this happened, i.e. is it something I did wrong or is it something which went wrong during the release process? Any pointers gratefully received. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Ok, found it. It looks like I messed up in r72005 when fixing #5854. Very sorry to all for the inconvenience. I will add a unit test to try and catch this in the future. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I see Benjamin's beaten me to it - thanks, Benjamin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Georg Brandl ge...@python.org added the comment: I've already added logging to test___all__.py which checks the __all__ attribute. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7052] from logging import * causes an error under Ubuntu Karmic
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Georg Brandl added the comment: I've already added logging to test___all__.py which checks the __all__ attribute. Sorry, I thought Benjamin did that. Thanks and regards, Vinay Sajip -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com