SOAPpy under Python 2.6

2009-01-14 Thread leith
I am having problems with SOAPpy after we upgraded to Python 2.6

Here is the exception I keep getting:

  File "C:\Dev\Phoenix\SAPI.py", line 2561, in getSystemInfo
obj = self.soapProxy.getSystemInfo()
  File "c:\python26\Lib\site-packages\SOAPpy\Client.py", line 470, in
__call__
return self.__r_call(*args, **kw)
  File "c:\python26\Lib\site-packages\SOAPpy\Client.py", line 492, in
__r_call
self.__hd, self.__ma)
  File "c:\python26\Lib\site-packages\SOAPpy\Client.py", line 363, in
__call
config = self.config)
TypeError: call() got multiple values for keyword argument 'encoding'

Could some please help me with this?

I don't have the faintest idea what the exception is on about and
SOAPpy\Client.py is very hard to follow.

Leith Bade
--
http://mail.python.org/mailman/listinfo/python-list


Detecting a GUI session

2009-01-07 Thread Leith Bade
I would like to know whether my GUI program is being run under python or
pythonw.
 
I would like to know this so I can redirect stderr when their is no
console window (pythonw) otherwise leave it spitting to the console
window (python).
 
This is because I debug using python while the customer release build
uses pythonw.
 
I can see their is sys.executable but a google search turned up various
discussions on what this actually means (e.g when run under an
integrated exe file - which we do for our release builds).
 
Leith Bade
--
http://mail.python.org/mailman/listinfo/python-list