Questions tagged [ptvs]

Python Tools for Visual Studio turns Visual Studio into a Python IDE. It's a free & open source plug-in for Visual Studio, written and supported by Microsoft and community.

Python Tools for Visual Studio turns Visual Studio into a Python IDE. It's a free & open source plug-in for Visual Studio from Microsoft. PTVS enables developers to use all the major productivity features of Visual Studio to build Python code using either CPython or IronPython and adds new features such as attaching to running Python processes and debugging mixed Python/C++ code.

212 questions
1
vote
0 answers

Python in Visual Studio (PTVS): Debug not working but Run works

I installed PTVS 2.1 on MS Visual Studio 2013 and then created a simple python project showing 'Hello World'. When I Start Without Debugging I see the shell and 'Hello World' message, everything is fine. But when I try Start Debug, nothing happens,…
Alireza
  • 10,237
  • 6
  • 43
  • 59
1
vote
1 answer

Python Tools for Visual Studio can't download `setuptools` on IronPython

I'm using PTVS 2.1 with IronPython 2.7.4 in Visual Studio Express 2013 for Windows Desktop with Update 3 on a Windows 8.1 Pro x64 host with .NET 4.5 installed. I have an empty Python project with default env set to IronPython 2.7. When I want to a…
Tomasz Cudziło
  • 2,462
  • 1
  • 17
  • 20
1
vote
1 answer

What's the difference between PTVS and IronPython Tools for Visual Studio?

what is the difference between Python Tools for Visual Studio and the IronPython Tools for Visual Studio included in the IronPython distribution? If there is a difference can they live side by side?
Nisar
  • 5,708
  • 17
  • 68
  • 83
1
vote
1 answer

debug c++ python extension from visual studio

I'm using Python Tools for Visual Studio (PTVS). I can't do the c++ debugging of an extension. I've already enabled native code debugging. My doubt is how to link the 2 projects (c++ and python)? The c++ library is loaded in this way in python (3.4…
user2829483
1
vote
1 answer

PTVS in VS2013: Why does this for loop not catch the StopIteration?

I'm using PTVS with Python 3.4.1 in VS2013. The following code tries to read past the end of the file and throws a StopIteration exception in VS2013. It runs fine in the Python interpreter. source.csv is a simple csv file saved as a csv from Excel…
1
vote
1 answer

Assign keyboard shortcut to "Start without debugging"

Python Tools for Visual Studio has the option to debug a script. How can I assign a keyboard shortcut for this? Tools/Options/Environment/Keyboard does not seem to contain this option
Colin Pickard
  • 45,724
  • 13
  • 98
  • 148
1
vote
1 answer

Intellisense not working with PTVS(python 3.3)

I have both IronPython 2.7 and Python 3.3 installed. Intellisense works perfectly when I use IronPython and other languages but as soon as I switch to Python ,it stops working with a message -"Intellisense database is currently not up to date and…
XZ6H
  • 1,779
  • 19
  • 25
1
vote
2 answers

Django does not lazy-load when using python tools for VS2013

I'm trying to retrieve a QuerySet: models = MyModel.objects.filter(starttime__lt=sometime) When running using VS2013, this for some reason executes the query (taking forever, I later chain more filters..). I know the query executes because when it…
1
vote
1 answer

Is there a better way to create a new Python project from existing code in Visual Studio

I find it very cumbersome to create a new Python (I am using the PTVS extension) project in Visual Studio from existing code. What I am wanting to know is if there is a way to do this more efficiently. Ideally, something that would live in the…
1
vote
2 answers

PTVS Doesn't detect installed VS2010

I want to install PTVS for Visual Studio 10. Every time I run msi package with name "PTVS 2.0 VS 2010" it shows me an error that I have to install VS2010 first but I've already had VS2010 express. I check some solutions on the internet but it didn't…
EmPlusPlus
  • 171
  • 1
  • 4
  • 19
1
vote
1 answer

PTVS + Django: why can i not import python libraries

i am following the tutorial found here: http://www.windowsazure.com/en-us/documentation/articles/cloud-services-web-sites-python-django-app-with-ptvs/ I already had django installed on my system. After following the instructions in this tutorial, i…
mike01010
  • 5,226
  • 6
  • 44
  • 77
1
vote
1 answer

PTVS: unit test source path

Using Python Tools for Visual Studio, I created a 'project from exisiting source'. I can run it's main application file, but every unit test (automatically discovered!) fails to start: ImportError: No Module named src.xyz.unit.TestThisAndThat My…
xtofl
  • 40,723
  • 12
  • 105
  • 192
1
vote
1 answer

Is it possible to debug a method called from the interactive window in PTVS?

When I'm developing in Python I often want to debug a specific method, in which case it makes sense to call the method from the interactive console or debug interactive console. However, when a method is called from the interactive windows in PTVS,…
Tim Rae
  • 3,167
  • 2
  • 28
  • 35
1
vote
1 answer

How to Integrate C/C++ python modules with PVTS projects/VS 2013 Solutions

I have installed VS2013 Express Edition and wanted to use the PVTS plugin to manage Python based web application solutions. Apparently the PVTS plugin cannot be installed for an existing VS Express Edition (vs Professional/Ultimate Editions) Also…
πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190
1
vote
1 answer

Using PTVS for a "simple" WSGI app

I'm starting with both web development and Python, so maybe I'm asking something stupid, but anyway. In PTVS where is only Django web project, however I would like to work with barebone WSGI Python web app as defined in PEP-0333. What should I do to…
Petr Abdulin
  • 33,883
  • 9
  • 62
  • 96