AnsweredAssumed Answered

Geoprocessing service fails on importing python module

Question asked by paul.haakma on Sep 28, 2016
Latest reply on Sep 29, 2016 by paul.haakma



I have a python script that imports the Beautiful Soup module, bs4 is installed on the server, and the script runs fine. However, when I publish this as a GP service (on the same server) and then try to run that tool as a GP service, I get the following error:


Error executing tool.............line 54, in from bs4 import BeautifulSoup ImportError: No module named bs4 Failed to execute..........


The only ESRI documentation I could find seemed to indicate that the module would not be 'consolidated' i.e. packaged with the script, but so long as the module was installed on the server then the GP service should run.


Can anyone suggest how to resolve this issue?





Authoring geoprocessing tasks with Python scripts—Documentation | ArcGIS for Server 


Third-party modules

Third-party modules (any module that is not part of the core Python installation) are not consolidated. You need to ensure the module exists and runs correctly on the server. This does not apply to the numpy or matplotlib modules which are installed with ArcGIS Server.