<?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: Using Third Party Modules within ArcToolbox Script  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464689#M36395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are you using from that module?&amp;nbsp; copy?&amp;nbsp; My preference is to import the module then use module.function method of using imports (ie xutils.copy.... ) if that is indeed the function.&amp;nbsp; This ensures that namespace doesn't get overwritten/redefined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2017 18:32:42 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-03-24T18:32:42Z</dc:date>
    <item>
      <title>Using Third Party Modules within ArcToolbox Script</title>
      <link>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464688#M36394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all and thanks in advanced.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im working on creating a python tool that will be placed in a tooblox on a network drive within my organization. The tool needs to use the xlutils module but our organization does not have the module installed on our computers. I know that if you place the module in the same folder&amp;nbsp;as the scripting tool .py file you should be able to import. I set up my toolbox and placed the module in the same folder as the toolbox / script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the script from IDE everything runs fine. However, running the tool from within ArcMap yields the error:&lt;/P&gt;&lt;P&gt;AttributeError: 'module' object has no attribute 'copy'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have no tips?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Self taught python so sorry if i have the wrong terminology.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464688#M36394</guid>
      <dc:creator>BenjaminMittler</dc:creator>
      <dc:date>2017-03-24T18:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Third Party Modules within ArcToolbox Script</title>
      <link>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464689#M36395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are you using from that module?&amp;nbsp; copy?&amp;nbsp; My preference is to import the module then use module.function method of using imports (ie xutils.copy.... ) if that is indeed the function.&amp;nbsp; This ensures that namespace doesn't get overwritten/redefined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464689#M36395</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-24T18:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Third Party Modules within ArcToolbox Script</title>
      <link>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464690#M36396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am using copy from the module. For some reason importing the module then using xlutils.copy wasnt working. However, Importing as "from xlutils import copy" seemed to solve the issue. Weird because I could have sworn that was one of the first things I tried.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 12:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-third-party-modules-within-arctoolbox-script/m-p/464690#M36396</guid>
      <dc:creator>BenjaminMittler</dc:creator>
      <dc:date>2017-03-27T12:14:01Z</dc:date>
    </item>
  </channel>
</rss>

