<?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: Arc 10.1 Upgrade nuked my python path info in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637863#M49708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I went into Control Panel (Windows Server 2008) but did not see python listed in the Add/Remove programs area. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the 10.0 uninstaller removed Python 2.6 - but maybe not all of it. And it looks like your windows file associations maybe are still pointing .py files to Python26.exe - it should be opening all .py files with Python27.exe. this is why a repair install of Python 2.6 (from the 10.0 DVD) followed by an uninstall of 2.6 followed by a repair install of Python 2.7 (from the 10.1 DVD) may be the best fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can try to go in brute-force and (as -pr) open windows explorer and in Tools / Folder Options make sure .py files are associated with the correct python.exe. But I've found that often just the repair-install approach seems to get everything done better in the long run, so I would try that first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, A manual thing you could and should do is remove any references to Python 2.6 from your system PATH variable. Installers usually aren't very good at editing the PATH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The command line I gave would work from any folder, as it specifying the full path to the Python 2.7 executable. I formatted up my code block to make that more clear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 22:10:39 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-08-24T22:10:39Z</dc:date>
    <item>
      <title>Arc 10.1 Upgrade nuked my python path info</title>
      <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637859#M49704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My server was updated to ArcGIS 10.1 last week and now I'm unable to run python code from the command line. The error I get is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The program can't start because python26.dll is missing from your computer. Try reinstalling hte program to fix the problem.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I double-click on the C:\Python27\ArcGIS10.1\python27.exe executable, it will successfully open the command line interface. The C:\Python26\ArcGIS10.0\python26.exe throws the above error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I need to do is to be able to run python scripts from the Windows command line, for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;c:\FolderName\python ScriptName.py&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know what I need to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 21:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637859#M49704</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2012-08-24T21:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arc 10.1 Upgrade nuked my python path info</title>
      <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637860#M49705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This doesn't work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;E:\workspace&amp;gt; &lt;SPAN style="color:blue;"&gt;&lt;STRONG&gt;C:\Python27\ArcGIS10.1\python.exe scriptname.py&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want only one version of Python installed unless you absolutely require multiple versions, as it can be done but is a real pain. ArcGIS 10.1 Server requires Python 2.7 (64 bit, yay!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 21:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637860#M49705</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-08-24T21:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arc 10.1 Upgrade nuked my python path info</title>
      <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637861#M49706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your reply. The thing is, I can't run all my python scripts from the python27 directory. I need to be able to run them from anywhere on the computer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like I must need to update a registry setting or something? I need windows to understand that Python27 is the new and only way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went into Control Panel (Windows Server 2008) but did not see python listed in the Add/Remove programs area. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas? Thanks a lot in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 21:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637861#M49706</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2012-08-24T21:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arc 10.1 Upgrade nuked my python path info</title>
      <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637862#M49707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried running pyversioncheck.py from the following location: C:\Python27\ArcGIS10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the following output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;--- TEST VERBOSE=1&lt;BR /&gt;--- Testing existing and identical version file&lt;BR /&gt;VersionTestPackage: No correctly formatted current version file found&lt;BR /&gt;--- Testing existing package with new version&lt;BR /&gt;VersionTestPackage: No correctly formatted current version file found&lt;BR /&gt;--- Testing package with non-existing version file&lt;BR /&gt;VersionTestPackage: No correctly formatted current version file found&lt;BR /&gt;--- Test package with 2 locations, first non-existing second ok&lt;BR /&gt;VersionTestPackage: No correctly formatted current version file found&lt;BR /&gt;--- TEST VERBOSE=2&lt;BR /&gt;--- Testing existing and identical version file&lt;BR /&gt;VersionTestPackage:&lt;BR /&gt;&amp;nbsp; Checking &lt;A href="http://www.cwi.nl/~jack/versiontestdir/Version10.txt"&gt;http://www.cwi.nl/~jack/versiontestdir/Version10.txt&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No "Current-Version:" header in URL or URL not found&lt;BR /&gt;--- Testing existing package with new version&lt;BR /&gt;VersionTestPackage:&lt;BR /&gt;&amp;nbsp; Checking &lt;A href="http://www.cwi.nl/~jack/versiontestdir/Version11.txt"&gt;http://www.cwi.nl/~jack/versiontestdir/Version11.txt&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No "Current-Version:" header in URL or URL not found&lt;BR /&gt;--- Testing package with non-existing version file&lt;BR /&gt;VersionTestPackage:&lt;BR /&gt;&amp;nbsp; Checking &lt;A href="http://www.cwi.nl/~jack/versiontestdir/nonexistent.txt"&gt;http://www.cwi.nl/~jack/versiontestdir/nonexistent.txt&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No "Current-Version:" header in URL or URL not found&lt;BR /&gt;--- Test package with 2 locations, first non-existing second ok&lt;BR /&gt;VersionTestPackage:&lt;BR /&gt;&amp;nbsp; Checking &lt;A href="http://www.cwi.nl/~jack/versiontestdir/nonexistent.txt"&gt;http://www.cwi.nl/~jack/versiontestdir/nonexistent.txt&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No "Current-Version:" header in URL or URL not found&lt;BR /&gt;&amp;nbsp; Checking &lt;A href="http://www.cwi.nl/~jack/versiontestdir/Version10.txt"&gt;http://www.cwi.nl/~jack/versiontestdir/Version10.txt&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No "Current-Version:" header in URL or URL not found&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what to make of that....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 22:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637862#M49707</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2012-08-24T22:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arc 10.1 Upgrade nuked my python path info</title>
      <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637863#M49708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I went into Control Panel (Windows Server 2008) but did not see python listed in the Add/Remove programs area. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the 10.0 uninstaller removed Python 2.6 - but maybe not all of it. And it looks like your windows file associations maybe are still pointing .py files to Python26.exe - it should be opening all .py files with Python27.exe. this is why a repair install of Python 2.6 (from the 10.0 DVD) followed by an uninstall of 2.6 followed by a repair install of Python 2.7 (from the 10.1 DVD) may be the best fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can try to go in brute-force and (as -pr) open windows explorer and in Tools / Folder Options make sure .py files are associated with the correct python.exe. But I've found that often just the repair-install approach seems to get everything done better in the long run, so I would try that first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, A manual thing you could and should do is remove any references to Python 2.6 from your system PATH variable. Installers usually aren't very good at editing the PATH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The command line I gave would work from any folder, as it specifying the full path to the Python 2.7 executable. I formatted up my code block to make that more clear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 22:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637863#M49708</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-08-24T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arc 10.1 Upgrade nuked my python path info</title>
      <link>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637864#M49709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I did was specify the correct PATH and/or PYTHONPATH environment variable in Group Policy.&amp;nbsp; That way it will automatically fix anything that various (un)installers like to do to break your Python installation.&amp;nbsp; Good luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 22:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arc-10-1-upgrade-nuked-my-python-path-info/m-p/637864#M49709</guid>
      <dc:creator>EuanKilgour</dc:creator>
      <dc:date>2012-08-27T22:37:55Z</dc:date>
    </item>
  </channel>
</rss>

