Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: install questions (http://www.velocityreviews.com/forums/t339753-re-install-questions.html)

Premshree Pillai 12-28-2004 09:20 PM

Re: install questions
 
Umm, the file is called soap.py, so when you import you'll have to do a:

import soap


On Tue, 28 Dec 2004 13:09:48 -0800 (PST), A Chan <achan_work@yahoo.com> wrote:
> Hi, All,
>
> I'm new in Python. I just install ActivePython 2.4 on
> my PC and also install SOAPpy-0.11.6.zip,
> soapy-0.1.win32.exe. When I run the following script,
> I got no module named SOAPpy. Am I missing any
> modules? Thanks
>
> Angela
> ================================================
> error message:
>
> Traceback (most recent call last):
> File
> "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py" ,
> line 310, in RunScript
> exec codeObject in __main__.__dict__
> File "C:\test1.py", line 1, in ?
> import SOAPpy
> ImportError: No module named SOAPpy
>
> ================================================== ===
> Python script:
>
> import SOAPpy
>
> WSDL_URI =
> "http://www.xmethods.net/sd/2001/TemperatureService.wsdl"
> service = SOAPpy.WSDL.Proxy(WSDL_URI)
>
> # if you are behind a proxy server, you need to set
> this
> service.soapproxy.http_proxy = 'PROXY_HOST:PROXY_PORT'
>
> # set config so that we dump the SOAP envelopes
> # (sometimes you will be thrilled to see the SOAP
> envelopes)
> service.soapproxy.config.dumpSOAPOut = 1
> service.soapproxy.config.dumpSOAPIn = 1
>
> temp = service.getTemp('90210') # get temperature in
> Beverly Hills
> print 'The temperature in Beverly Hills is',temp,'F'
> ================================================== =====
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> --
> http://mail.python.org/mailman/listinfo/python-list
>



--
Premshree Pillai
http://www.livejournal.com/~premshree


All times are GMT. The time now is 09:30 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.