[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
*** This bug is a duplicate of bug 262636 *** https://bugs.launchpad.net/bugs/262636 ** This bug has been marked a duplicate of bug 262636 Needs to be upgraded to 0.6c8-4 to fix svn 1.5 support -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
Sorry, I cannot confirm that the bug is fixed. But I can offer a workaround to use http://svn.collab.net/repos/svn/trunk/tools/client- side/change-svn-wc-format.py to downgrade the working copy to 1.4, then do whatever you need against that copy. Yes... not a solution, but it allowed me to do what I needed to do. -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
The patch http://bugs.python.org/file10198/setuptools_patch.txt does not fix the problem, which is a simple little coding error in Python. A simple example of the same problem would be this Python command line session: Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits or license for more information. print x Traceback (most recent call last): File stdin, line 1, in module NameError: name 'x' is not defined The problem described by this bug is that the symbol 'log' is not defined. What needs to be done to define 'log' is these lines need to be put into the sdist.py file somewhere before 'log' is referenced: import logging log = logging.getLogger(__file__) It happens to be the case that Subversion 1.5 working copies *expose* this bug quite noisily, but Subversion 1.5 is not really what the bug is about. It's about a simple little coding error that is trivial to fix. Chances are that setuptools won't behave quite as usefully in the presence of Subversion 1.5 as it would if it understood svn 1.5 working copies when this fix is applied, but it doesn't just croak off with a stack trace either. It prints/logs a warning carries on doing the best it can do. But the whole Subversion 1.5 thing is really a separate issue. -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
In theory this should be fixed in Ubuntu Intrepid, as it has the same package version as the version fixed in debian. Can anyone confirm? ** Also affects: setuptools via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489263 Importance: Unknown Status: Unknown ** Changed in: setuptools Bugwatch: Debian Bug tracker #489263 = Python Roundup #2770 ** Also affects: python-setuptools (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489263 Importance: Unknown Status: Unknown -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
** Changed in: python-setuptools (Debian) Status: Unknown = Fix Released -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
** Changed in: setuptools Status: Unknown = Confirmed -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
This bug was also reported here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489263 and here: http://bugs.python.org/issue2770 A patch has been made which is here: http://bugs.python.org/file10198/setuptools_patch.txt The patch is also attached to this comment, although it still doesn't fix the call to log.warn which will still fail. ** Attachment added: setuptools_patch.txt http://launchpadlibrarian.net/17549051/setuptools_patch.txt -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
** Attachment added: Dependencies.txt http://launchpadlibrarian.net/17253358/Dependencies.txt -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 264171] Re: undefined global name 'log' in command/sdist.py module
Sorry, I should have said; import logging log = logging.getLogger(__file__) instead of logger. -- undefined global name 'log' in command/sdist.py module https://bugs.launchpad.net/bugs/264171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs