[Bug 358004] Re: launchpadlib scripts break when run under python 2.6
*** This bug is a duplicate of bug 336067 *** https://bugs.launchpad.net/bugs/336067 ** This bug has been marked a duplicate of bug 336067 python-httplib2 needs a patch for Python2.6 support -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
I was really confused by this issue so I asked Gary to do some research and he came up with the following. 1. The problem is a real problem in stock httplib2 0.4.0. 2. The httplib2 that comes with Jaunty is patched to avoid or fix the bug. 3. The Launchpad PPA includes an httplib2 that has the bug. So if you use Jaunty as a normal user, you shouldn't have a problem. If you use Jaunty and you're also a Launchpad developer, you'll have the problem (because the PPA version has the bug). If you check out the source from Launchpad, you'll have the problem (because the PyPi version has the bug). -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
See https://bugs.edge.launchpad.net/ubuntu/+source/python- httplib2/+bug/336067 and the related httplib2 bug linked there. -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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
Re: [Bug 358004] Re: launchpadlib scripts break when run under python 2.6
On Fri, Apr 24, 2009 at 02:37:44PM -, Paul Hummer wrote: > I don't think the real issue is in launchpadlib, but in the upstream > httplib2. What I did to fix the bug is to install the packaged version > of httplib2, and that's it. It worked fine after that, and I'm running > Tarmac on Jaunty now. I'd say it is an issue with launchpadlib, since it installs the broken version of httplib2. -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
I don't think the real issue is in launchpadlib, but in the upstream httplib2. What I did to fix the bug is to install the packaged version of httplib2, and that's it. It worked fine after that, and I'm running Tarmac on Jaunty now. -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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
Re: [Bug 358004] Re: launchpadlib scripts break when run under python 2.6
On Fri, Apr 24, 2009 at 12:49:07PM -, James Westby wrote: > On Fri, 2009-04-24 at 12:16 +, Björn Tillenius wrote: > > > python -c 'import httplib2; print httplib2.__path__' > > > > ixia:~> python -c 'import httplib2; print httplib2.__path__' > > /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:29: > > DeprecationWarning: the md5 module is deprecated; use hashlib instead > > /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:44: > > DeprecationWarning: the sha module is deprecated; use the hashlib module > > instead > > ['/usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2'] > > That's odd. > > Was this installed by setuptools at some point? Yes, it was. > If you remove the egg and use the packaged version then you > won't have this issue. Right. It's still an issue that installing via setuptools doesn't work. The reason I installed via setuptools was that the latest launchpadlib bzr revision wasn't available as a package. -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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
Re: [Bug 358004] Re: launchpadlib scripts break when run under python 2.6
On Fri, Apr 24, 2009 at 12:19:20PM -, Leonard Richardson wrote: > I haven't been able to test this, but a possible workaround is to pass > in timeout=20.0 when creating the Launchpad object. Try this and see if > it works. No, that workaround doesn't seem to work. -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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
Re: [Bug 358004] Re: launchpadlib scripts break when run under python 2.6
On Fri, 2009-04-24 at 12:16 +, Björn Tillenius wrote: > > python -c 'import httplib2; print httplib2.__path__' > > ixia:~> python -c 'import httplib2; print httplib2.__path__' > /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:29: > DeprecationWarning: the md5 module is deprecated; use hashlib instead > /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:44: > DeprecationWarning: the sha module is deprecated; use the hashlib module > instead > ['/usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2'] That's odd. Was this installed by setuptools at some point? It seems that a new release of httplib2 has not been made with the python2.6 fix, so any setup.py install will lead to this error. If you remove the egg and use the packaged version then you won't have this issue. Thanks, James -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
I haven't been able to test this, but a possible workaround is to pass in timeout=20.0 when creating the Launchpad object. Try this and see if it works. -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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
Re: [Bug 358004] Re: launchpadlib scripts break when run under python 2.6
On Fri, Apr 24, 2009 at 11:25:50AM -, James Westby wrote: > Hi, > > Could you include the output of > > apt-cache policy python-httplib2 ixia:~> apt-cache policy python-httplib2 python-httplib2: Installed: 0.4.0-0ubuntu2 Candidate: 0.4.0-0ubuntu2 Version table: *** 0.4.0-0ubuntu2 0 500 http://lt.archive.ubuntu.com jaunty/universe Packages 100 /var/lib/dpkg/status > python -c 'import httplib2; print httplib2.__path__' ixia:~> python -c 'import httplib2; print httplib2.__path__' /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead ['/usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2'] -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
Hi, Could you include the output of apt-cache policy python-httplib2 and python -c 'import httplib2; print httplib2.__path__' please. Thanks, James -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
I'm confirming this bug, since launchpadlib isn't working under python 2.6 when installing using 'python2.6 setup.py install'. ** Changed in: launchpadlib Status: Incomplete => Triaged -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
This bug does not affect the python-launchpadlib in Ubuntu, but in the Launchpad specific PPA that provides legacy support for python 2.4. I reverted back to the official python-launchpadlib and everything works. ** Changed in: tarmac Status: New => Invalid ** Changed in: python-launchpadlib (Ubuntu) Status: New => Invalid -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
** Changed in: launchpadlib Status: New => Incomplete -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
I just remembered bug 336067, could you check if the egg is too old to contain that fix? Thanks, James -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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 358004] Re: launchpadlib scripts break when run under python 2.6
File "/usr/lib/python2.6/httplib.py", line 699, in send self.connect() File "build/bdist.linux-i686/egg/httplib2/__init__.py", line 736, in connect File "", line 1, in settimeout TypeError: a float is required I don't see this issue, and the appearance of an egg there is a difference that is immediately apparent. Do you know where this is getting picked up from, and does avoiding it make the problem go away? Thanks, James ** Also affects: python-launchpadlib (Ubuntu) Importance: Undecided Status: New ** Changed in: python-launchpadlib (Ubuntu) Importance: Undecided => High -- launchpadlib scripts break when run under python 2.6 https://bugs.launchpad.net/bugs/358004 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