<?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: outdated path for imported module ??? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574939#M45054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The system variable sys.path does not contain the outdated directory where the module is being searched from. And I have manually appended there the correct module directory. But still the same error occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Johanna&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Johanna,&lt;BR /&gt;&lt;BR /&gt;Python looks in the directories that are part of the module search path. These directories&lt;BR /&gt;are listed in the sys.path variable from the sys module.&amp;nbsp; To list where the Python looks for modules, print out the value of the sys.path variable. For example:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print sys.path&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If the previous path of this module is located there, this could be the reason you are receiving this error.&amp;nbsp; You can remove the path by using &lt;STRONG&gt;sys.path.remove&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:45:38 GMT</pubDate>
    <dc:creator>JohannaTorppa</dc:creator>
    <dc:date>2021-12-12T00:45:38Z</dc:date>
    <item>
      <title>outdated path for imported module ???</title>
      <link>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574936#M45051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python script, running in ArcGIS, that evidently tries to import a module from an outdated location. I get an error message and Traceback info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;File "x://outdated_path/SDMmodule.py", line 25, in appendSDMValues ....etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the module script SDMmodule.py is no more in that location, and I did not find a reason why it tries to find it from there. The module script SDM module.py is in the same directory as the main script, in a totally different location.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 09:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574936#M45051</guid>
      <dc:creator>JohannaTorppa</dc:creator>
      <dc:date>2012-08-24T09:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: outdated path for imported module ???</title>
      <link>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574937#M45052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Johanna,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python looks in the directories that are part of the module search path. These directories&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are listed in the sys.path variable from the sys module.&amp;nbsp; To list where the Python looks for modules, print out the value of the sys.path variable. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print sys.path&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the previous path of this module is located there, this could be the reason you are receiving this error.&amp;nbsp; You can remove the path by using &lt;/SPAN&gt;&lt;STRONG&gt;sys.path.remove&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574937#M45052</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T00:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: outdated path for imported module ???</title>
      <link>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574938#M45053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake, sounds reasonable. I'll try that on monday.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Johanna,&lt;BR /&gt;&lt;BR /&gt;Python looks in the directories that are part of the module search path. These directories&lt;BR /&gt;are listed in the sys.path variable from the sys module.&amp;nbsp; To list where the Python looks for modules, print out the value of the sys.path variable. For example:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print sys.path&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If the previous path of this module is located there, this could be the reason you are receiving this error.&amp;nbsp; You can remove the path by using &lt;STRONG&gt;sys.path.remove&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574938#M45053</guid>
      <dc:creator>JohannaTorppa</dc:creator>
      <dc:date>2021-12-12T00:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: outdated path for imported module ???</title>
      <link>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574939#M45054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The system variable sys.path does not contain the outdated directory where the module is being searched from. And I have manually appended there the correct module directory. But still the same error occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Johanna&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Johanna,&lt;BR /&gt;&lt;BR /&gt;Python looks in the directories that are part of the module search path. These directories&lt;BR /&gt;are listed in the sys.path variable from the sys module.&amp;nbsp; To list where the Python looks for modules, print out the value of the sys.path variable. For example:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print sys.path&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If the previous path of this module is located there, this could be the reason you are receiving this error.&amp;nbsp; You can remove the path by using &lt;STRONG&gt;sys.path.remove&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/outdated-path-for-imported-module/m-p/574939#M45054</guid>
      <dc:creator>JohannaTorppa</dc:creator>
      <dc:date>2021-12-12T00:45:38Z</dc:date>
    </item>
  </channel>
</rss>

