install questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A Chan

    #1

    install questions

    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\Li b\site-packages\python win\pywin\frame work\scriptutil s.py",
    line 310, in RunScript
    exec codeObject in __main__.__dict __
    File "C:\test1.p y", line 1, in ?
    import SOAPpy
    ImportError: No module named SOAPpy

    =============== =============== =============== ========
    Python script:

    import SOAPpy

    WSDL_URI =
    "http://www.xmethods.ne t/sd/2001/TemperatureServ ice.wsdl"
    service = SOAPpy.WSDL.Pro xy(WSDL_URI)

    # if you are behind a proxy server, you need to set
    this
    service.soappro xy.http_proxy = 'PROXY_HOST:PRO XY_PORT'

    # set config so that we dump the SOAP envelopes
    # (sometimes you will be thrilled to see the SOAP
    envelopes)
    service.soappro xy.config.dumpS OAPOut = 1
    service.soappro xy.config.dumpS OAPIn = 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.
    Shop the best deals at Yahoo! Shopping! Discover discounts on a wide range of products, from electronics to fashion, and enjoy exclusive offers. Save big with top deals today!

Working...