omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Suds on Pythonista

    Pythonista
    2
    5
    3106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stjbrown67
      stjbrown67 last edited by

      Hi all,
      I am looking for a bit of help getting Suds to work on Pythonista. I have written a quick script to install the actual library.(Well I actually just modified one from here, but it seems to do the job.

      https://gist.github.com/stjbrown/09bfc9756a899d2fea61

      The problem is that I get an error when I import suds. It looks to me like Pythonista does not contain the 'new' module. This seems to be a standard module in Python 2.x, any thoughts on adding it? Or modifying Suds?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        Sorry, seems like an oversight on my part. You should be able to get the <code>new</code> module running pretty easily though. Just copy the code from here and add it to the script library (name it "new", the .py extension is appended automatically, but not shown, or just modify your download script accordingly):

        http://svn.python.org/projects/python/trunk/Lib/new.py

        1 Reply Last reply Reply Quote 0
        • stjbrown67
          stjbrown67 last edited by

          Thanks. Thats seems to have moved me along a bit. But now I am getting the following error. Any thoughts?

          Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/var/mobile/Applications/87540C84-03EE-4FE0-89AC-A8BB0712E05A/Documents/suds/init.py", line 154, in <module>
          import client
          File "/var/mobile/Applications/87540C84-03EE-4FE0-89AC-A8BB0712E05A/Documents/suds/client.py", line 23, in <module>
          import suds.metrics as metrics
          AttributeError: 'module' object has no attribute 'metrics'

          1 Reply Last reply Reply Quote 0
          • omz
            omz last edited by

            I don't get that error when I <code>import suds</code> after running your script. What are you doing exactly that leads to this?

            1 Reply Last reply Reply Quote 0
            • stjbrown67
              stjbrown67 last edited by

              I restarted pythonista and it imports now! Thx for the assistance.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors