[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-05 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7052 ___ ___ Python-bugs-list

from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Valery
Hi all is it a pure Ubuntu Karmic (beta) 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

Re: from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Valery
OK, I've filed a bug. Because Python2.5 works fine here. -- Valery -- http://mail.python.org/mailman/listinfo/python-list

Re: from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Benjamin Kaplan
I can confirm this in Python 2.6.3 for Windows and Mac while it doesn't appear in Python 2.6.2 on Windows or the system Python 2.6.1 in Snow Leopard. Looks like it's a Python problem, not Ubuntu's. On Sun, Oct 4, 2009 at 3:31 AM, Valery khame...@gmail.com wrote: OK, I've filed a bug. Because

Re: from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
On Oct 4, 4:47 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: Looks like it's a Python problem, not Ubuntu's. That's correct, it's a Python problem. A fix has been checked in on the release26-maint branch (which means that it should be available in 2.6.4) and a unit test added to catch this

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Valery
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Valery
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Ryan Leslie
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Antoine Pitrou
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Gregor Lingl
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Antoine Pitrou
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Gregor Lingl
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
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

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
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 ___

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Georg Brandl
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 ___

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
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 -- ___