Some errors when running code in diveintopython: (
Environment: WinXP SP2 + Python 2.4.2, with SOAPpy-0.11.6.zip, fpconst-0.7.2.zip, and PyXML-0.8.4.win32-py2.4.exe installed. Problem: I'm reading DiveIntoPython these days. When running code of "Example 12.11. Calling A Web Service Through A WSDL Proxy", I got some errors as follow. Will you please give me some suggestion? IDLE 1.1.2's Output: >>> from SOAPpy import WSDL >>> wsdlFile = 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl' >>> server = WSDL.Proxy(wsdlFile) >>> server.methods.keys() [u'getTemp'] >>> server.getTemp('90210') Traceback (most recent call last): File "", line 1, in -toplevel- server.getTemp('90210') File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__ return self.__r_call(*args, **kw) File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call self.__hd, self.__ma) File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 347, in __call config = self.config) File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 187, in call r.endheaders() File "E:\Program Files\Python\lib\httplib.py", line 795, in endheaders self._send_output() File "E:\Program Files\Python\lib\httplib.py", line 676, in _send_output self.send(msg) File "E:\Program Files\Python\lib\httplib.py", line 643, in send self.connect() File "E:\Program Files\Python\lib\httplib.py", line 611, in connect socket.SOCK_STREAM): gaierror: (11001, 'getaddrinfo failed') >>> -- http://mail.python.org/mailman/listinfo/python-list
Some errors when running code in diveintopython: (
Environment: WinXP SP2 + Python 2.4.2, with SOAPpy-0.11.6.zip, fpconst-0.7.2.zip, and PyXML-0.8.4.win32-py2.4.exe installed. Problem: I'm reading DiveIntoPython these days. When running code of "Example 12.11. Calling A Web Service Through A WSDL Proxy", I got some errors as follow. Will you please give me some suggestion? IDLE 1.1.2's Output: >>> from SOAPpy import WSDL >>> wsdlFile = 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl' >>> server = WSDL.Proxy(wsdlFile) >>> server.methods.keys() [u'getTemp'] >>> server.getTemp('90210') Traceback (most recent call last): File "", line 1, in -toplevel- server.getTemp('90210') File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__ return self.__r_call(*args, **kw) File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call self.__hd, self.__ma) File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 347, in __call config = self.config) File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py", line 187, in call r.endheaders() File "E:\Program Files\Python\lib\httplib.py", line 795, in endheaders self._send_output() File "E:\Program Files\Python\lib\httplib.py", line 676, in _send_output self.send(msg) File "E:\Program Files\Python\lib\httplib.py", line 643, in send self.connect() File "E:\Program Files\Python\lib\httplib.py", line 611, in connect socket.SOCK_STREAM): gaierror: (11001, 'getaddrinfo failed') >>> -- http://mail.python.org/mailman/listinfo/python-list
Re: Some errors when running code in diveintopython: (
I can visit those two websites above, but when I run your code, I get those errors(BTW,I have closed my firewall ): >>> import socket >>> socket.getaddrinfo("www.xmethods.net", 80) Traceback (most recent call last): File "", line 1, in -toplevel- socket.getaddrinfo("www.xmethods.net", 80) gaierror: (11001, 'getaddrinfo failed') >>> socket.getaddrinfo("services.xmethods.net", 80) Traceback (most recent call last): File "", line 1, in -toplevel- socket.getaddrinfo("services.xmethods.net", 80) gaierror: (11001, 'getaddrinfo failed') >>> what can I do? -- http://mail.python.org/mailman/listinfo/python-list
Re: Some errors when running code in diveintopython: (
thanks all ! I've solved this problem: Let me show my net environment first. My pc is in a local network, and through a proxy server can I reach the Internet, so I changed my Internet Settings. It seems that everything goes well, I can surf Internet, etc, but what a pity, I can't resolve a host's address by its name by gethostbyname() in C Language; in python, socket.getaddrinfo() will fail. So today, I installed MSFireWallClient which will connect to the ISA server. and after that, everything works: ) Thanks again, Merry Christmas and a Happy New Year!! -- http://mail.python.org/mailman/listinfo/python-list
some suggestions about GUI toolkits?
I have to build a GUI applicaiton that could run on different OS such as windows and *nix, which GUI toolkit is better? Best Regards. -- http://mail.python.org/mailman/listinfo/python-list
Re: some suggestions about GUI toolkits?
thanks all, There're so many GUI toolkits that make newbie(like me) feel confused. If there's a much up-to-date evaluation about that, things may become easier. Now, I'm trying PythonCard(http://pythoncard.sourceforge.net/). and hope everything goes well: ) -- http://mail.python.org/mailman/listinfo/python-list
questions about py2exe and wax
Using py2exe, I can convert a GUI Application with PythonCard to a standalone windows program, and it works. Then I try another GUI Toolkit named Wax, implement a GUI App, it works. And I convert that app by py2exe. But this time, when run, it show a messagebox that says: """ This application requires a version of wxPython greater than or equal to 2.6, but a matching version was not found. You currently have these version(s) installed: Would you like to download a new version of wxPython? """ any suggestion? the follows are the code of setup.py and the GUI App test.py. /// #setup.py from distutils.core import setup # py2exe stuff import py2exe, os setup(name='test', version='0.1', url='about:none', author='anonymous', author_email='[EMAIL PROTECTED]', package_dir={'test':'.'}, packages=['test'], windows=['test.py'], ) /// # test.py import sys sys.path.append("../..") from wax import * WaxConfig.default_font = ("Verdana", 9) class MainFrame(Frame): def Body(self): self.AddComponent(Button(self, "one", event=self.OnClick)) self.Pack() def OnClick(self, event=None): # show an empty dialog... ugly, but it should work dlg = Dialog(self, "JUst some dialog") print dlg.OnCharHook print dlg.ShowModal() dlg.Destroy() app = Application(MainFrame) app.MainLoop() /// -- http://mail.python.org/mailman/listinfo/python-list
two questions about thread
hi there, I'm new to python, and have two questions: a. how to exit the whole process in a thread? b. when thread doing a infinite loops, how to terminate the process?: it seems that the follow doesn't work, in my Windows XP: thread.start() thread.join() Regards -- http://mail.python.org/mailman/listinfo/python-list
how to get all users that currently logged in?
we can do it with 'who' in *nuix, but os.getlogin() returns only the user of the current process... how to do it by python, any suggestions? Best Regards. -- http://mail.python.org/mailman/listinfo/python-list