Using the zeep-library in Arcpy

09-25-2017 01:20 AM
New Contributor II

Hi. I'm creating a python script which I'm going to publish as a geoprocessing service. The script is using the Zeep-library for connecting to a webservice (wsdl). I've written the script outside of ArcMap, and the script works fine when I run it. The wsdl is parsed and I can use the methods in the webservice. But when I try to run the script in ArcMap, I get an error 

AttributeError: 'NoneType' object has no attribute 'utf_8_decode'

when I try to create the client:

client = zeep.Client(wsdl = wsdlUrl)

If I import the arcpy module, I also get an error saying cannot import name multiarray.

Have anyone used zeep in connection with arcpy?

I'm using ArcMap 10.5 and the newest version of zeep.

Regards, Torbjørn

0 Kudos
1 Reply
MVP Legendary Contributor

sounds like you have more than one version of python installed.  10.5 uses python 2.7.13 and in that C:\Python27\ArcGIS10.5..... path buried in the sitepackages folder should be your installed zeep folder and numpy (multiarray). Can you confirm that everything is installed where it is supposed to be and that you only have one version of python that isn't being maintained by a conda environment