SOAPpy SyntaxError

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • neridaj@gmail.com

    SOAPpy SyntaxError

    Hello,

    I'm going through the SOAP Web Services portion of Mark Pilgrim's
    tutorial and I'm getting this error when trying to build:

    python setup.py build
    Traceback (most recent call last):
    File "setup.py", line 8, in <module>
    from SOAPpy.version import __version__
    File "/Users/username/Desktop/SOAPpy-0.12.0/SOAPpy/__init__.py",
    line 5, in <module>
    from Client import *
    File "/Users/username/Desktop/SOAPpy-0.12.0/SOAPpy/Client.py", line
    46
    from __future__ import nested_scopes
    SyntaxError: from __future__ imports must occur at the beginning of
    the file

    I tried moving that line and it didn't help.

    Thanks,

    Jason
  • Jon-Pierre Gentil

    #2
    Re: SOAPpy SyntaxError

    neridaj@gmail.c om wrote:
    I'm going through the SOAP Web Services portion of Mark Pilgrim's
    tutorial and I'm getting this error when trying to build:
    >
    File "/Users/username/Desktop/SOAPpy-0.12.0/SOAPpy/Client.py", line
    46
    from __future__ import nested_scopes
    SyntaxError: from __future__ imports must occur at the beginning of
    the file
    >
    I tried moving that line and it didn't help.
    I was able to successfully move that line to the very top of the file in
    each of the files it errored in. There are quite a number of them and
    it must be done in all files that contain that line.

    I really wish that SOAPpy wasn't so dead. There are a few other bugs
    that I found as well revolving around namespace errors but I never had
    time to debug them properly to contribute a patch.

    Comment

    Working...