Save Config fix is lost in python 2.6

Bug #459085 reported by Stella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
txLoadBalancer
In Progress
High
Duncan McGreggor

Bug Description

We used txLoadBalancer-1.1.0.patched-py2.4 and recently switched to python 2.6.
Our current txlb version does not have Jehiah's change for saving config. Is there any download-able patched python 2.6 txlb version ?
Thanks.

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

Stella, thanks for the bug report. I've set this to high-priority, and will do the followig:

1) produce a new release of txLoadBalancer.

2) Provide Python 2.6 compatibility.

I don't currently have 2.6 installed on my system, so I will get that built and setup. Then I'll take txLB through the 2.6 paces and get changes merged to trunk that support it.

At which point I will cut a new release.

Changed in txloadbalancer:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Duncan McGreggor (oubiwann)
status: Confirmed → In Progress
Revision history for this message
Duncan McGreggor (oubiwann) wrote :

In case this is of any use to folks, here's what I did to run txLB on Python2.6:
 * Install Pyton2.6
 * Install setuptools
 * sudo easy_install-2.6 zope.interface
 * sudo easy_install-2.6 pycrypto
 * bzr branch lp:pyopenssl && cd pyopenssl && sudo /usr/local/bin/python2.6 setup.py install
 * Install the latest release of Twisted
 * bzr branch lp:txloadbalancer && cd txloadbalancer && /usr/local/bin/python2.6 setup.py build
 * /usr/local/bin/twistd -noy ./bin/txlb.tac

With this process, everything that txLB needs to run seems like it got installed. There are a couple warnings, but those can be ignored (regardless, I will be updating the code so that those don't appear).

As such, txLB seems to be Python2.6 ready.

Stella, can you paste a comment with whatever errors you were getting with your version of txLB and the Python you were using?

Thanks!

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

I take it back: the only warning I'm seeing is from pycrypto. So far, I haven't come across anything Python2.6-specific that needs fixing... the admittedly light test suite also runs without errors or warnings under Python2.6.

So, it seems that if there ever was a problem with Python2.6 and txLB, patches have already been applied to trunk (that's what I'm testing against).

Stella, I'll wait a few days to hear from you. If I don't, I'll just go ahead and make a new release.

Thanks!

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

Okay, the code is prepped for release 1.2.0. All the latest changes (mostly docs) have been pushed to trunk on Launchpad.

Revision history for this message
Stella (skazansk) wrote :

Duncan, thank you so much for the quick response! I'll download the new release.

The warnings we are having are (but it's still running):
/usr/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/usr/lib/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha

Revision history for this message
Duncan McGreggor (oubiwann) wrote : Re: [Bug 459085] Re: Save Config fix is lost in python 2.6

Stella wrote:
> Duncan, thank you so much for the quick response! I'll download the new
> release.
>
> The warnings we are having are (but it's still running):
> /usr/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
> import os, md5, sys
> /usr/lib/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
> import sha
>

Ah, yes -- these warnings are from Twisted itself. Sadly, it's not a bug
that I can fix :-(

But, the good news is that these are warnings and won't affect the
running of your code.

d

Revision history for this message
Stella (skazansk) wrote :

Duncan, sorry I cant' find the download-able txloadbalancer 1.2 release

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.