<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ImportError on ArcGIS Server: No module named xlsxwriter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691828#M53639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class="" dir="ltr"&gt;in python console it imports module with no errors.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is that the Python console on your local machine or server?&amp;nbsp; If server, what path are you using to run the Python console?&amp;nbsp; What version of ArcGIS Server and what version of Linux?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2019 15:04:08 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2019-06-03T15:04:08Z</dc:date>
    <item>
      <title>ImportError on ArcGIS Server: No module named xlsxwriter</title>
      <link>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691827#M53638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;Hi All,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;I'm trying to publish on ArcGIS Server a geoprocessing service, which creates an Excel File with some data.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;I'm using Pandas and XlsxWriter but locally it works. On the ArcGIS Server (linux machine) it does not.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;Seems like it can't find module, though I have installed and overwritten it in different ways, and in python console it imports module with no errors.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;On ArcGIS Server manager page script fails and logs:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" dir="ltr"&gt;ImportError: No module named xlsxwriter Failed to execute (Script).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;any workaround?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-tooltip="3 giugno 2019 10:18:33 UTC+2" style="color: #263238; font-size: 13px; margin-left: 9px; margin-bottom: 6px; margin-right: 9px;"&gt;&lt;SPAN class="" dir="ltr"&gt;thanx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 08:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691827#M53638</guid>
      <dc:creator>GianniContino</dc:creator>
      <dc:date>2019-06-03T08:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError on ArcGIS Server: No module named xlsxwriter</title>
      <link>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691828#M53639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class="" dir="ltr"&gt;in python console it imports module with no errors.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is that the Python console on your local machine or server?&amp;nbsp; If server, what path are you using to run the Python console?&amp;nbsp; What version of ArcGIS Server and what version of Linux?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 15:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691828#M53639</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-06-03T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError on ArcGIS Server: No module named xlsxwriter</title>
      <link>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691829#M53640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it'll help:&lt;BR /&gt;we also needed a additional custom Python package. As we only have access to our Linux server via shell, we installed the missing module via&amp;nbsp; "/&lt;SPAN class=""&gt;&amp;lt;ArcGISServer_InstallDir&amp;gt;&lt;/SPAN&gt;/server/tools/python -m pip install &amp;lt;modulname&amp;gt;". The package was insalled into /&lt;SPAN class=""&gt;&amp;lt;ArcGISServer_InstallDir&amp;gt;&lt;/SPAN&gt;/server/framework/runtime/.wine/drive_c/Python27/ArcGISx6410.6/Lib/site-packages&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;: we finally copied the folder of the site package into: /&amp;lt;ArcGISServer_InstallDir&amp;gt;/server/framework/runtime/ArcGIS/bin/Python/envs/arcgispro-py3/Lib/site-packages.&amp;nbsp;I don't know if this is the correct way to do, but now our &lt;SPAN class="" dir="ltr"&gt;geoprocessing service&lt;/SPAN&gt; can use the custom Python package.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="simple-translate-panel" style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px; background-color: #ffffff;"&gt;&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;&lt;P class="simple-translate-result" style="color: #000000;"&gt;&lt;/P&gt;&lt;P class="simple-translate-candidate" style="color: #737373;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="simple-translate-button" style="background-image: url('moz-extension://03f73264-93a3-4ce1-a450-6160cdc44f03/icons/512.png'); height: 22px; width: 22px; top: 130px; left: 619px;"&gt;&lt;/DIV&gt;&lt;DIV class="simple-translate-panel" style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px; background-color: #ffffff;"&gt;&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;&lt;P class="simple-translate-result" style="color: #000000;"&gt;&lt;/P&gt;&lt;P class="simple-translate-candidate" style="color: #737373;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 12:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-on-arcgis-server-no-module-named/m-p/691829#M53640</guid>
      <dc:creator>ChristophFederle</dc:creator>
      <dc:date>2019-06-04T12:04:00Z</dc:date>
    </item>
  </channel>
</rss>

