PTVS 2.1 beta 2 installation on Visual Studio 2013 Express Update 3

Aug 11 at 8:05 AM
Hi.

It seems I can't install PTVS on my VS Express.
Installation rolls back and show this screen :
Image

I have no clue about what happened that prevent it from installing.

I tried installing VS Update 2 on top of my Update 3 installation, but it cannot be done.

Thomas.
Aug 11 at 1:33 PM
OK, I finally could do it.
I had a weird old installation of PyTools with VS 2013 Preview which was not uninstalled correctly.

I had to find and delete a lot of registry keys to make it work.

So now my problem is that i can't run any interactive prompt without having this error message :
---------------------------
Microsoft Visual Studio Express 2013 pour Windows Desktop
---------------------------
ReplId FAEC7F47-85D8-4899-8D7B-0B855B732CC8 2af0f10d-7135-4994-9156-5d01c9c11b7e 2.7 was not provided by an IReplWindowProvider
---------------------------
OK   
---------------------------
I have both Python 2.7 + IronPython 2.7 installed. They were here before VS2013 and before PTVS, but they were detected immediately.

Thomas.
Coordinator
Aug 11 at 5:40 PM
It may be that you didn't clean up everything (or you cleaned up too much). Does the old version not appear in Programs and Features? If you can uninstall it from there and then reinstall the newer version (we just released RC!) you may have more luck. I assume you reinstalled/repaired the newer version after removing the old one?

If you can't get to the old installer (rerunning the MSI is another option if you can find it) then I'll see if I can help you through cleaning up whatever is left.
Aug 12 at 5:59 AM
Hi, thanks for your reply.

The old version doesn't appear anymore in Programs & Features, I've been quite thorough in regedit :)
I think all my problems come from the fact that I installed VS Express 2013 on top of the Preview or RC version that was bundled with PTVS (it was last year I think?). Yesterday I uninstalled VSExpress 2013 (and had to manually remove things here too) and installed the very latest one (Update 3). I had to repair the installation to make it work properly after reboot though.

Anyway, I installed the PTVS 2.1 RC but my two (or three) problems remain:
  1. This message box appears when I try to start an interactive prompt.
---------------------------
Microsoft Visual Studio Express 2013 pour Windows Desktop
---------------------------
ReplId BA417560-5A78-46F1-B065-638D27E1CDD0 was not provided by an IReplWindowProvider
---------------------------
OK   
---------------------------
  1. See https://pytools.codeplex.com/workitem/2591 I don't have syntax highlighting for Python and
  2. I have an exception with Intellisense (https://pytools.codeplex.com/workitem/2591 ).
Do you prefer to continue the discussion here or in Issues?
Coordinator
Aug 12 at 4:27 PM
As this seems to be an installation issue on your machine, I'd rather keep the discussion here.

Certainly VS does not handle upgrades from Preview/RC versions very well (though it seems to be significantly improved for VS 14), and our integrated package didn't handle uninstalls well either. If you had any plans to clean your entire system, this might be good motivation to do that sooner :)

Otherwise, you may be running into issues because you haven't cleaned up the "Microsoft.VisualStudio.ReplWindow" extension (or similar), that should be in Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft alongside where PTVS is installed. This is actually part of PTVS, but it had the wrong name up until recently.

You may also need to remove some files from the global assembly cache (GAC). To do this, you'll need a copy of gacutil (it comes with some older versions of Visual Studio or in the Windows SDK - search Program Files (x86) for gacutil.exe to find it). Then you'll want to use gacutil /l <name> to find the full names of the assemblies below, and then gacutil /u <name> to remove them. If you haven't fully cleaned up the old installation, then they may refuse to be removed - try http://support.microsoft.com/mats/Program_Install_and_Uninstall to fully clean it up. You should also uninstall your current version of PTVS before attempting this too. (And please don't go removing any assemblies other than these - this is a pretty easy way to break your entire machine...)

The assemblies you'll need to remove are:
  • Microsoft.PythonTools
  • Microsoft.PythonTools.Analysis
  • Microsoft.PythonTools.Attacher
  • Microsoft.PythonTools.Debugger
  • Microsoft.PythonTools.ImportWizard
  • Microsoft.PythonTools.VSInterpreters
  • Microsoft.VisualStudio.ReplWindow
Note that not all of these may be installed, depending on which version of PTVS you had. After removing these, you must reinstall PTVS in order to replace the files that are necessary.
Sep 16 at 7:56 AM
Hi. I finally found the time to come back to this subject.

gacutils.exe found nothing to be removed on my machine.

Today, I installed the RC2 (which still doesn't work).
I checked with gacutils.exe, and I can't find any assembly related to Python or PythonTools, event AFTER installation. I don't know it it's right.

After launching VSExpress on a Python project, I had the welcome page displayed, so the installation worked somehow.

I still have the problems described here : https://pytools.codeplex.com/workitem/2591
Coordinator
Sep 16 at 3:49 PM
Can you have a look in Program File (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WDExpressExtensions\Microsoft at the Python Tools folders (if they're there - they should be)? There should be a 2.1 folder in each and a whole lot of DLLs and other files in that folder.

We've seen some installation issues in the past due to security policies on some machines, which normally prevent all the files from being installed in the right locations. This may be happening here, so we may be able to solve this easily.
Sep 17 at 6:17 AM
Everything seems alright:
Python Tools for Visual Studio\2.1\BuiltinScraper.py
Python Tools for Visual Studio\2.1\DkmDebugger.vsdconfig
Python Tools for Visual Studio\2.1\extension.vsixmanifest
Python Tools for Visual Studio\2.1\ExtensionScraper.py
Python Tools for Visual Studio\2.1\IronPythonScraper.py
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analysis.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe.config
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Attacher.exe
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.AttacherX86.exe
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.BuildTasks.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Debugger.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Debugger.Helper.x64.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Debugger.Helper.x64.pdb
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Debugger.Helper.x86.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Debugger.Helper.x86.pdb
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.ImportWizard.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.pkgdef
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.ProjectWizards.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.TestAdapter.dll
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.theme.pkgdef
Python Tools for Visual Studio\2.1\Microsoft.PythonTools.VSInterpreters.dll
Python Tools for Visual Studio\2.1\NoInterpreters.mht
Python Tools for Visual Studio\2.1\NoSurveyNewsFeed.mht
Python Tools for Visual Studio\2.1\pip_downloader.py
Python Tools for Visual Studio\2.1\PyDebugAttach.dll
Python Tools for Visual Studio\2.1\PyDebugAttachX86.dll
Python Tools for Visual Studio\2.1\Python Tools for VS License.rtf
Python Tools for Visual Studio\2.1\PythonDkm.natvis
Python Tools for Visual Studio\2.1\PythonFile.ico
Python Tools for Visual Studio\2.1\PythonProject.ico
Python Tools for Visual Studio\2.1\PythonProjectBig.ico
Python Tools for Visual Studio\2.1\PythonScraper.py
Python Tools for Visual Studio\2.1\visualstudio_ipython_repl.py
Python Tools for Visual Studio\2.1\visualstudio_py_debugger.py
Python Tools for Visual Studio\2.1\visualstudio_py_launcher.py
Python Tools for Visual Studio\2.1\visualstudio_py_repl.py
Python Tools for Visual Studio\2.1\visualstudio_py_testlauncher.py
Python Tools for Visual Studio\2.1\visualstudio_py_util.py
Python Tools for Visual Studio\2.1\CompletionDB\array.idb
Python Tools for Visual Studio\2.1\CompletionDB\binascii.idb
Python Tools for Visual Studio\2.1\CompletionDB\clr.idb
Python Tools for Visual Studio\2.1\CompletionDB\cmath.idb
Python Tools for Visual Studio\2.1\CompletionDB\copy_reg.idb
Python Tools for Visual Studio\2.1\CompletionDB\cPickle.idb
Python Tools for Visual Studio\2.1\CompletionDB\cStringIO.idb
Python Tools for Visual Studio\2.1\CompletionDB\datetime.idb
Python Tools for Visual Studio\2.1\CompletionDB\errno.idb
Python Tools for Visual Studio\2.1\CompletionDB\exceptions.idb
Python Tools for Visual Studio\2.1\CompletionDB\future_builtins.idb
Python Tools for Visual Studio\2.1\CompletionDB\gc.idb
Python Tools for Visual Studio\2.1\CompletionDB\imp.idb
Python Tools for Visual Studio\2.1\CompletionDB\itertools.idb
Python Tools for Visual Studio\2.1\CompletionDB\marshal.idb
Python Tools for Visual Studio\2.1\CompletionDB\math.idb
Python Tools for Visual Studio\2.1\CompletionDB\mmap.idb
Python Tools for Visual Studio\2.1\CompletionDB\msvcrt.idb
Python Tools for Visual Studio\2.1\CompletionDB\nt.idb
Python Tools for Visual Studio\2.1\CompletionDB\operator.idb
Python Tools for Visual Studio\2.1\CompletionDB\re.idb
Python Tools for Visual Studio\2.1\CompletionDB\select.idb
Python Tools for Visual Studio\2.1\CompletionDB\signal.idb
Python Tools for Visual Studio\2.1\CompletionDB\socket.idb
Python Tools for Visual Studio\2.1\CompletionDB\sys.idb
Python Tools for Visual Studio\2.1\CompletionDB\thread.idb
Python Tools for Visual Studio\2.1\CompletionDB\time.idb
Python Tools for Visual Studio\2.1\CompletionDB\unittest.case.idb
Python Tools for Visual Studio\2.1\CompletionDB\unittest.idb
Python Tools for Visual Studio\2.1\CompletionDB\xxsubtype.idb
Python Tools for Visual Studio\2.1\CompletionDB\_codecs.idb
Python Tools for Visual Studio\2.1\CompletionDB\_collections.idb
Python Tools for Visual Studio\2.1\CompletionDB\_ctypes.idb
Python Tools for Visual Studio\2.1\CompletionDB\_ctypes_test.idb
Python Tools for Visual Studio\2.1\CompletionDB\_functools.idb
Python Tools for Visual Studio\2.1\CompletionDB\_heapq.idb
Python Tools for Visual Studio\2.1\CompletionDB\_io.idb
Python Tools for Visual Studio\2.1\CompletionDB\_locale.idb
Python Tools for Visual Studio\2.1\CompletionDB\_md5.idb
Python Tools for Visual Studio\2.1\CompletionDB\_random.idb
Python Tools for Visual Studio\2.1\CompletionDB\_sha.idb
Python Tools for Visual Studio\2.1\CompletionDB\_sha256.idb
Python Tools for Visual Studio\2.1\CompletionDB\_sha512.idb
Python Tools for Visual Studio\2.1\CompletionDB\_sre.idb
Python Tools for Visual Studio\2.1\CompletionDB\_ssl.idb
Python Tools for Visual Studio\2.1\CompletionDB\_struct.idb
Python Tools for Visual Studio\2.1\CompletionDB\_subprocess.idb
Python Tools for Visual Studio\2.1\CompletionDB\_warnings.idb
Python Tools for Visual Studio\2.1\CompletionDB\_weakref.idb
Python Tools for Visual Studio\2.1\CompletionDB\_winreg.idb
Python Tools for Visual Studio\2.1\CompletionDB\__builtin__.idb
Python Tools for Visual Studio\2.1\Templates\NewItem\class.py
Python Tools for Visual Studio\2.1\Templates\NewItem\class.pyw
Python Tools for Visual Studio\2.1\Templates\NewItem\module.py
Python Tools for Visual Studio\2.1\Templates\NewItem\module.pyw
Python Tools for Visual Studio\2.1\Templates\NewItem\NewPythonItems.vsdir
Python Tools for Visual Studio - Interactive Window\2.1\extension.vsixmanifest
Python Tools for Visual Studio - Interactive Window\2.1\Microsoft.VisualStudio.ReplWindow.dll
Python Tools for Visual Studio - Interactive Window\2.1\Microsoft.VisualStudio.ReplWindow.pkgdef
Python Tools for Visual Studio - Interactive Window\2.1\Microsoft.VisualStudio.Replwindow.theme.pkgdef
Python Tools for Visual Studio - IronPython\2.1\extension.vsixmanifest
Python Tools for Visual Studio - IronPython\2.1\Microsoft.IronPythonTools.Resolver.dll
Python Tools for Visual Studio - IronPython\2.1\Microsoft.PythonTools.IronPython.dll
Python Tools for Visual Studio - IronPython\2.1\Microsoft.PythonTools.IronPython.Interpreter.dll
Python Tools for Visual Studio - IronPython\2.1\Microsoft.PythonTools.IronPython.pkgdef
Python Tools for Visual Studio - IronPython\2.1\PythonProject.ico
Python Tools for Visual Studio - IronPython\2.1\PythonProjectBig.ico
Python Tools for Visual Studio - Logger\2.1\extension.vsixmanifest
Python Tools for Visual Studio - Logger\2.1\Microsoft.PythonTools.VsLogger.dll
Python Tools for Visual Studio - Logger\2.1\Microsoft.PythonTools.VsLogger.pkgdef
Python Tools for Visual Studio - Logger\2.1\PythonProject.ico
Python Tools for Visual Studio - Logger\2.1\PythonProjectBig.ico
Sep 18 at 12:21 PM
My AppData\Roaming\Microsoft\WDExpress\12.0\ActivityLog.xml seems to have useful information.

I put it there: https://pytools.codeplex.com/workitem/2591 . It's the ActivityLog-20140918.xml file.
Sep 22 at 9:19 AM
OK, everything is now working fine.

The problem was that my Visual Studio Express ISO file was corrupted. Somehow it installed but it was not working properly.

Thanks for your support, and sorry this was such a simple solution...
Coordinator
Sep 23 at 4:47 PM
Glad you got it sorted.