hockeyprincess / google-api-dfp-python

Automatically exported from code.google.com/p/google-api-dfp-python
Apache License 2.0
0 stars 0 forks source link

Problem on common/SoapBuffer.py #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Another problem detected on the API.

If you are running on an enviromment that is not the Google App Engine, the 
PyXML is really not detect, so we perceived this problem at line 46 where we 
have:

# Is this running on Google's App Engine?
  try:
    import google.appengine
    import _xmlplus
  except:
    import xml as _xmlplus

Running on this way we cannot go ahead because the server is trying to import 
the xml native python as _xmlplus, but they don't have all features that PyXML 
has. So fixing this to:

from:
except:
    import xml as _xmlplus

to:

except:
    try:
      import _xmlplus
    except:
      import xml as _xmlplus

Now works fine. Please add this fix to new version

Thanks

Rogério Carrasqueira

Original issue reported on code.google.com by rogerio....@gmail.com on 11 Nov 2010 at 12:46

GoogleCodeExporter commented 8 years ago
This should be patched in the next release.

Original comment by api.sgri...@gmail.com on 11 Nov 2010 at 9:14

GoogleCodeExporter commented 8 years ago

Original comment by api.sgri...@gmail.com on 16 Nov 2010 at 12:17