2012 Installation - no projects / unsupported Python

Jan 15 at 10:59 AM
I've been trying to install Python Tools 2.0 for 2012 and getting problems. It successfully installs OK for my VS 2010 Pro, but doesn't appear to fully do so in 2012 Pro.

They appear in the extensions manager, but I have no python entries in the Tools menu, and no python entry under File / New project. If I open a python project, it shows as "incompatible" and "This application is not installed" in the Solution Explorer.

I've also tried 1.5 and 2.0 beta, but they do the same.

Any ideas as to the issue here?
Jan 15 at 11:01 AM
Looking through some other discussions, I've run devenv /setup /log and the following is shown in the log.xml to do with Python:

<entry>
<record>28</record>
<time>2014/01/15 11:25:21.769</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (WpfApp.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>29</record>
<time>2014/01/15 11:25:21.824</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (DjangoApp.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>30</record>
<time>2014/01/15 11:25:21.885</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (ConsoleProject.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>31</record>
<time>2014/01/15 11:25:21.920</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (WinformsApp.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>32</record>
<time>2014/01/15 11:25:21.960</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (FromExistingCode.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>33</record>
<time>2014/01/15 11:25:21.998</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (PythonConsoleApp.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>34</record>
<time>2014/01/15 11:25:22.037</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (SilverlightProject.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
<entry>
<record>482</record>
<time>2014/01/15 11:26:02.872</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (class.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>483</record>
<time>2014/01/15 11:26:02.887</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (textfile.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>484</record>
<time>2014/01/15 11:26:02.918</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (WpfWindow.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>485</record>
<time>2014/01/15 11:26:02.931</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (DjangoHtml.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>486</record>
<time>2014/01/15 11:26:02.951</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (JavaScript.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>487</record>
<time>2014/01/15 11:26:02.963</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (Stylesheet.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>488</record>
<time>2014/01/15 11:26:02.994</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (empty.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>489</record>
<time>2014/01/15 11:26:03.043</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (package.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
<entry>
<record>490</record>
<time>2014/01/15 11:26:03.064</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (test.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>

<entry>
<record>533</record>
<time>2014/01/15 11:26:03.655</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Error in Template (), file (DjangoNewAppFiles.vstemplate).  Unregistered ProjectType (Python).  This can be caused by an incorrect ProjectType or because the project type package is not installed.</description>
</entry>
Coordinator
Jan 15 at 12:27 PM
Do you see any mentions of the string "Microsoft.PythonTools" in the log? It should be something along the lines of:
  <entry>
    <record>62</record>
    <time>2014/01/15 13:23:51.841</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Importing pkgdef file</description>
    <path>C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.0\Microsoft.PythonTools.pkgdef</path>
  </entry>
If not, then can you take a look at what you have in the directory located at the path above where the pkgdef is supposed to be?
Jan 15 at 12:42 PM
No, I can't see any reference in the log to "PythonTools" . The contents of my directory (C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.0) is:

extension.vsixmanifest
ExtensionScraper.py
IronPythonScraper.py
License.html
Microsoft.PythonTools.Analysis.dll
Microsoft.PythonTools.Analyzer.exe
Microsoft.PythonTools.Analyzer.exe.config
Microsoft.PythonTools.Attacher.exe
Microsoft.PythonTools.AttacherX86.exe
Microsoft.PythonTools.Debugger.dll
Microsoft.PythonTools.Debugger.Helper.x64.dll
Microsoft.PythonTools.Debugger.Helper.x64.pdb
Microsoft.PythonTools.Debugger.Helper.x86.dll
Microsoft.PythonTools.Debugger.Helper.x86.pdb
Microsoft.PythonTools.dll
Microsoft.PythonTools.ImportWizard.dll
Microsoft.PythonTools.pkgdef
Microsoft.PythonTools.TestAdapter.dll
Microsoft.PythonTools.VSInterpreters.dll
NoInterpreters.html
NoSurveyNewsFeed.html
pip_downloader.py
PyDebugAttach.dll
PyDebugAttachX86.dll
Python Tools for VS License.rtf
PythonDkm.natvis
PythonFile.ico
PythonProject.ico
PythonProjectBig.ico
PythonScraper.py
visualstudio_ipython_repl.py
visualstudio_py_debugger.py
visualstudio_py_launcher.py
visualstudio_py_repl.py
visualstudio_py_testlauncher.py
visualstudio_py_util.py
CompletionDB
ptvsd
Templates
BuiltinScraper.py
DkmDebugger.vsdconfig
Coordinator
Jan 20 at 3:35 PM
That list of files looks fine. If you uninstall PTVS and rerun devenv /setup /log do you see the same warnings? (I assume you've already tried reinstalling, but if not then that's worth a shot in case one of the files is corrupt.)

Ultimately, if all the files are there and aren't corrupted, there's no other registration that can 'go wrong'. It's all in the pkgdef file and VS is responsible for finding it.
Jan 24 at 7:06 AM
Yes, if I uninstall PTVS it still has the same warnings in the log. I've also carried out a full reinstall of VS 2012 Pro, and the same problems are still there. Stumped, as it all works fine on my colleagues PC sitting next to me, and under VS 2010!
Apr 2 at 8:41 AM
Just FYI - after an number of other issues and a few complete re-installs of VS 2012, this got sorted out by deleting a load of the registry relating to VS 2012. Once restarted VS everything was fine. Thought it would be useful in case others have similar odd issue, even though it is entirely on the VS side.