Ptvs: "debugging is not supported for python 2.5 and earlier" error on 3.5 Anaconda

Created on 31 Jul 2017  路  7Comments  路  Source: microsoft/PTVS

I'm trying to get VS2017 to hook into the Anaconda environment installed with ArcGIS Pro.
I think I've done what I need (New environment, setup paths, set language version), but when I try to debug some code, it throws the error.

Debugger Environments

Most helpful comment

Good point, I missed that.

It could be that the manually configured environment doesn't have the right Python language version.

image

All 7 comments

Sorry, but we intentionally removed support when we started relying on json for the debugger protocol.

We considered relying on an external json library (simplejson) but ended up just disabling it instead.

From the bug title, it sounds like the Python version in question is not actually 2.5, but rather 3.5 - is that right?

Good point, I missed that.

It could be that the manually configured environment doesn't have the right Python language version.

image

Could you open Tools, Python Tools, Diagnostic Info and either post the contents as a gist and link it here, or email as an attachment to [email protected]?

@huguesv When I first got the error, I checked the Configure settings and changed that; it's set correctly.

@zooba It seems that a little sleep over night and restarting VS has fixed the problem. But, here's the gist, in case it helps.

I can see some entries that show we forgot the version number for a while there (some /version 0.0 options in the log). Odd that it came good though... perhaps we triggered a settings load while we were still writing them out and that confused things?

We should check for potential race conditions between saving a configured environment and reloading environment settings. We are _supposed_ to suppress reloads while saving, but maybe we missed one.

No repro.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huguesv picture huguesv  路  6Comments

huguesv picture huguesv  路  5Comments

JVanloofsvelt picture JVanloofsvelt  路  5Comments

cpoyraz picture cpoyraz  路  3Comments

sajeebchandan picture sajeebchandan  路  4Comments