AttributeError for SUDS in GAE

I am trying to incorporate the SUDS library into a Python project through the Google App Engine.

My code is trying to do the following:

from suds.client import Client from suds.wsse import * 

And, as soon as I deploy to GAE, I encountered the following error:

 File ".../myfile.py", line 13, in <module> from suds.client import Client File ".../suds/__init__.py", line 154, in <module> import client File ".../suds/client.py", line 25, in <module> import suds.metrics as metrics AttributeError: 'module' object has no attribute 'suds' 

I looked around a bit and it seems that SUDS works with GAE. I have added corrections here , but this does not seem to be a problem. App Engine doesn't even seem to get that far.

Any information or suggestions?

I am using Python 2.7 and SUDS 0.4.

+4
source share
1 answer

Have you tried making a simple import suds.client ? Also, make sure you include the suds folder in the application, as App Engine does not include it by default. Hope this helps.

0
source

Source: https://habr.com/ru/post/1440897/


All Articles