## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 18:52

• 16:53
StellaHuang95 closed #6834
• 16:53
StellaHuang95 commented #6834
• 07:58
linette-zyy labeled #7006
• 07:58
linette-zyy opened #7006
• 07:56
DagerD commented #6986
• May 15 18:05
VascoPi commented #6986
• May 14 21:11
sirkingchase starred microsoft/PTVS
• May 14 16:37
KennethEvans commented #6998
• May 14 09:23
s33Y377 starred microsoft/PTVS
• May 14 05:10
TheSQLGuru starred microsoft/PTVS
• May 14 04:22
achekerylla starred microsoft/PTVS
• May 13 22:12

Publish VS bootstrapper with vs… (compare)

• May 13 19:58

Workaround for a bug in Read-Ru… (compare)

• May 13 19:38
heathermrauch commented #6944
• May 13 19:33
StellaHuang95 commented #6915
• May 13 19:14
heathermrauch commented #6944
• May 13 19:10
• May 13 18:02
StellaHuang95 labeled #7005
• May 13 18:02
StellaHuang95 unlabeled #7005
Shaun van Zyl
@ShahuN-107
Hello! I'm very new to using Visual Studio, and would like to get CookieCutter Explorer installed on Visual Studio 2015 Professional. I've installed Python tools for Visual Studio 2.2.6, and I have both python 2.7 and 3.5(64-bit) installed, via CPython and Anaconda respectively, and those both show up in the Python Environments tab in Visual Studio, with 3.5 set as the default. Afaik, the CookieCutter Explorer should be present under View > CookieCutter Explorer. Am I missing something?
Hugues Valois
@huguesv
@ShahuN-107 the cookiecutter integration is a new feature that is only available in Visual Studio 2017.
yusufkaratoprak
@yusufkaratoprak
hi; how can I install python tools in visual studio 2017
Steve Dower
@zooba
@yusufkaratoprak Python is available as a workload when you install Visual Studio 2017. If you've already installed it and it's not there, open Quick Launch (top-right of the window) and type "Python" - it will help take you back to the installer
skucher
@skucher
Hello, Due to environment restriction my team is forced to develop and test on python 2.5. In Visual Studio 2017 I am getting an error while trying to run my unit tests saying 2.5 version of python is not supported anymore. Is there any way that we can do that in Visual Studio 2017?
Steve Dower
@zooba
@skucher Thanks for reaching out! We see so little usage of 2.5 that when we adopted JSON we chose to simply drop 2.5 support rather than provide workarounds. However, in most cases these steps should work:
• add your 2.5 environment as a custom environment and mark its version as 2.6
• install the simplejson package from PyPI
• add a sitecustomize.py file to your Python 2.5 install that contains:
import simplejson, sys
sys.modules['json'] = simplejson
Most of the problems that may occur with Python 2.5 are fixable in the .py files in our code, so feel free to modify those. We're open to merging pull requests to maintain Python 2.5 support (provided it doesn't impact later versions), but at this point we are no longer testing against Python 2.5 or 3.0.
skucher
@skucher
@zooba Thank you very much, the issue i am having is when i am trying to debug i have the following error:
System.NotSupportedException: Debugging is not supported for Python 2.5 and earlier.
Steve Dower
@zooba
@skucher Configuring your environment and setting the version to 2.6 rather than 2.5 should deal with that error.
Xi Shen
@davidshen84
Hi. Am I suppose to run 'conda update' to update my conda installation which comes with VS 2017 installation?
I tried to run conda update --prefix "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64" anaconda
but I got an error conda.CondaMultiError: post-link script failed for package defaults::ipykernel-4.8.0-py36_0
Steve Dower
@zooba
@davidshen84 You can if you want (make sure you run it from an administrative command prompt), it's just a regular Anaconda install. We periodically update the version included with the Visual Studio installer, and so updating Visual Studio will update the version of Anaconda at the same time.
For that error message, is there are more information in the output? I can take a look and see if there's something obviously wrong, but I suspect you'll be best to report it to Anaconda's support channels. You can also uninstall Anaconda through Visual Studio and install it manually from https://anaconda.com if you want a "regular" install - we will still detect it in Visual Studio just fine.
Juan Hernandez
Hello, using vs 2017 pro, 15.6.7... I just started working with QT, but it autocomplete doesn't seem to work at all with qt. if I do app = QApplication() ; I then try app.: and get nothing. the same for window = QWidget(): window.: brings up no methods, nothing.
Also, forgot to say I'm using qt5, PyQt5
Alberto Garcia Illera
@illera88
hey there!
I've been using PTVS for a long time but I've never faced the problem I just did:
I have a fresh windows installation and installed visual studio with python support. I can create python projects but for some reason when I click on start it just does nothing. I'm just using a simple hello world and trying to hit a breakpoint in the print instruction but nothing happens
I can't see anything in the output tab. I thought it was related with the python environments but i've tried multiple and that seems not to be the problem.
Using Windows 10 x64 Visual Studio 2017 Professional
Alberto Garcia Illera
@illera88
I've installed Vs2017 preview and exactly same thing: bp does not get hit and there is no log or any info why that happened
Alberto Garcia Illera
@illera88
is there a way I can get more debug from PTVS?
found out that when I start without debugging it actually runs the code. It just seems that nothing is run if I just press F5 or click on Start
Hugues Valois
@huguesv
@illera88 One thing that is relatively new is the experimental debugger. If you look in tools/options/python/experimental, you can turn it on/off. Try both and see if that makes a difference.
Alberto Garcia Illera
@illera88
I rebooted my computer and automagically it started working
I get this with the experimental one:
warning: Debugger speedups using cython not found. Run '"C:\Python27.15-x64\python.exe" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\Python\Core\Packages\ptvsd\pydevd\setup_cython.py" build_ext --inplace' to build.
and this when actually running what it ask for:
C:\windows\system32>"C:\Python37-x64\python.exe" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\Python\Core\Packages\ptvsd\pydevd\setup_cython.py" build_ext --inplace
running build_ext
building '_pydevd_bundle.pydevd_cython' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\_pydevd_bundle
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python37-x64\include -IC:\Python37-x64\include "-IC:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tc_pydevd_bundle/pydevd_cython.c /Fobuild\temp.win-amd64-3.7\Release\_pydevd_bundle/pydevd_cython.obj
pydevd_cython.c
_pydevd_bundle/pydevd_cython.c(28837): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28838): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28839): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28846): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28847): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28848): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28849): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28850): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28851): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28896): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28897): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28898): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28899): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28900): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28901): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(29032): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(29033): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.
Steve Dower
@zooba
@illera88 I don't know what the status of 3.7 support is for pydevd right now, but it should work fine without the speedups. Once we have clarified/fixed it, we will include the speedups in a VS update.
Alberto Garcia Illera
@illera88
What version is tested for the speedups?
Thomas Thelen
@ThomasThelen
Regarding support for Mac,
Every instillation guide that I have seen says to install python support via the VS Installer. The mac installer however, does not support the option for this. Is this extension supported for Mac? I haven't any indication that is is.
Steve Dower
@zooba
@illera88 Currently only Python 3.6 IIRC, though I'm petitioning the ptvsd team to expand that. Feel free to post issues on https://github.com/Microsoft/ptvsd requesting it :)
@ThomasThelen It is not. VS for Mac is a totally different product and we would have to reimplement most of the Python support to make it work there. Currently we are focused on Visual Studio 2017 and VS Code - the latter works fine on Mac, so we suggest trying that out.
Benjamin Van Renterghem
@BenjaVR
I was reading the issues about embedding Jupyter Notebooks in Visual Studio itself, although I don't understand why this will (probably?) not happen. How I would see this: when opening a .ipynb file, start a NB server at project root (with an interpreter of choice), and render the .ipynb file. What's the catch here?
I you guys would like to have that, I want to help here (will need some guidance though!)
Steve Dower
@zooba
@BenjaVR (Sorry for the slow reply.) The catch is that we don't work on a browser, and Notebooks basically need to run in a browser. The best option we have available in Visual Studio is basically IE9, and even that is going away (the recommendation is just to open the user's default browser). So about the only thing that needs implementing here is the command to start Jupyter running, and if you've installed Anaconda then you already have this command in your Start menu. You can also easily add it to VS under Tools, External Tools.
Tomer Chachamu
@r3m0t
Is the legacy debugger ever going away? Will the new debugger support mixed mode? & will PTVS use ILanguageClient for its features?
Hugues Valois
@huguesv
@r3m0t There are currently 3 debuggers: a) old ptvsd (legacy), b) new ptvsd - based on pydevd, and c) mixed-mode
old ptvsd will go away once new ptvsd has feature parity
mixed-mode debugger is completely different implementation, is unaffected and will stay
ILanguageClient: we're still focused on improving the server part for now
Tomer Chachamu
@r3m0t
Thanks!
kiddick
@kiddick
Hi here!
I've manually downloaded linux64 build from https://pvsc.blob.core.windows.net/python-language-server/Python-Language-Server-linux-x64.0.1.18204.3.nupkg and now there is Microsoft.Python.LanguageServer executable. How could I run this to verify that this is ok for my platform? Do I need any additional dependencies or specific building steps?
I've tried just ./Microsoft.Python.LanguageServer but there is no any output
Steve Dower
@zooba
@kiddick What you're doing is unsupported, so no, it's not okay for your platform :) Follow https://aka.ms/pythonblog to see when we announce that it's ready for use outside of VS Code
scripsica
@scripsica
Hi,
I have downloaded visual studio community version and trying use python on it. I tried both version of python 2.7 and 3.6 but there is problem refreshing db. It stuck on analyzing numpy.. and its intellescence stuck on numpy only. Please guide me.
Hugues Valois
@huguesv
@Shivraj1947 there are some known "stuck" issues with intellisense db in 15.8. Please enable "Use new style IntelliSense" in tools/options/python/experimental , which doesn't use a db. FYI the db-based IntelliSense has been removed in dev16.
Tomer Chachamu
@r3m0t
Will there be a 15.10 etc? I am worried by some issues already having dev16 as a milestone
scripsica
@scripsica
My issue has been resolved and thank you so much Hugues Volois
thank u so much for ur help
David Jackson
@davidwallacejackson
I'd like to write a PR for the language server, and I have some general questions about the architecture. Is this a good place to ask them?
David Jackson
@davidwallacejackson
Since it seems like the channel's maybe not super active, I'm just gonna ask and if anybody drops by and wants to answer me, cool ;-)
It seems like the analysis engine thinks in terms of nested scopes, and that a Python class is one type of scope. It also appears that methods are function scopes with the class as a parent. So my questions are:
1. Is that basically right?
2. If so, how do instances of those classes relate to the class scope, and how do they retrieve those instance methods to use, say, as completions?
David Jackson
@davidwallacejackson

for context, I'm trying to resolve the issue I submitted here: Microsoft/python-language-server#120

and if I don't happen to catch anybody: thanks for your great work! Really happy to have these tools in VSCode.

Hugues Valois
@huguesv
@r3m0t all development is now for dev16. Only top critical issues, approved by VS, will be fixed in dev15.
Hugues Valois
@huguesv
@davidwallacejackson I would recommend asking in the issue in the language server repo. As you noticed, we don't check this chat very often and with the split of language server to its own repo, the devs that can answer your questions will likely only check over there.
That is, for language server questions.