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
-
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?
-
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):
-
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' -
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?
-
I restarted pythonista and it imports now! Thx for the assistance.