Forum Discussion

Benjamin_Krein_'s avatar
Benjamin_Krein_
Icon for Nimbostratus rankNimbostratus
Sep 14, 2009

pycontrol source & Python 2.6

We are trying to use pyControl here in our environment which is exclusively Ubuntu Server. We have a strict rule of packaging *everything* that we install & we are also migrating entirely to Python 2.6. The current pyControl files that are available are not very conducive to this environment at all.

 

 

Can we get the Python source via a tarball with a proper setup.py included (yes, I know I can unzip the egg, but I also have to create a setup.py in order to package it).

 

 

I'm also curious if there is any progress on making this work with Python 2.6. Currently I get some errors when using what I have with Python 2.6.

4 Replies

  • Adding some more information...

     

    The LocalLB_Pool_client.py & LocalLB_Pool_server.py files use class names with '.' in them which is apparently not allowed in 2.6+. Because of this, the configure/install portion of the package installer can't pre-compile the *.py files at installation which causes the permissions error when non-root users try to access (and thus bytecode compile) the modules.

     

    I hope this all gets ported to Python 2.6 soon as the whole world is heading that way (Python 3.0 too!).
  • Unfortunately these are all problems with the ZSI library that pyControl wraps, and there's no indication of a fix (the classes you refer to aren't actually used by the way, only the 'types' classes that ZSI generates dynamically. ZSI produces them anyhow, which is a bug IMO). I looked into this and truthfully it looks like it'll mean re-implementing the chunks of ZSI used, which simply isn't worth it.

     

     

    I strongly suggest using the Suds library, which is superior to ZSI and is what pyControl2 will be based on. As of now, it looks very much like pyControl is stuck on 2.5 permanently, as I don't think ZSI is actively maintained.

     

     

    Sorry for the inconvenience, but such is the world of SOAP with Python. It's been a pain from day one - hopefully Suds will fix all of this.

     

     

    -Matt
  • I strongly suggest using the Suds library, which is superior to ZSI and is what pyControl2 will be based on.

     

     

     

    Is there any form of this pycontrol2 available at the moment or an ETA on when it will be available (beta or otherwise)? I don't know much about SOAP at the moment, so doing much hacking with Suds is a bit beyond me currently. I'd love to start hacking with the new pycontrol2 if I could though instead of developing code based on a soon to be deprecated pycontrol.