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
1 answer

numba exception when run from inside IDE (VS2015)

I have visual studio 2015 with PTVS, tested with both Anaconda Python 3.4 and 3.5 (64 bit). I get an exception immediately when the the script imports numba, this is a minimal example: import numba The exception is: dictionary changed size during…
Maarten
  • 1,037
  • 1
  • 11
  • 32
1
vote
0 answers

Visual Studio 2015 crashes after installing Python Tools

I recently installed visual studio 2015 Community, I wanted to use python with it. So I installed python tools. Now Visual studio crashes every time I try to create a new project.
Tankiso Thebe
  • 170
  • 2
  • 12
1
vote
4 answers

How to run PyLint for .pyproj when building it with MsBuild?

I need to run PyLint to validate my Python files code when building. The python files are under .pyproj (I use Python tools for Visual Studio 2015). How I can do that? Update: So far I have code like this:
Nmktronas
  • 237
  • 3
  • 12
1
vote
1 answer

Break into debugger on numpy exception in PTVS

I'm using PTVS to debug some code I've written. I'd like to get it to break into the debugger whenever a numpy exception is raised. Currently, it only breaks into the debugger when a standard Python exception is raised; whenever a numpy exception is…
Te-jé Rodgers
  • 878
  • 1
  • 7
  • 20
1
vote
0 answers

Installer with Python tools for Visual Studio

I want to know how I can create a installer from python, I use Python Tools for Visual Studio, and I need a installer to finish my project, I would prefer to create the installer with Visual Studio, but this isn't essential, thanks. I use Python…
1
vote
1 answer

VS Community 2015 PTVS 2.2 PyLint No Module Errors

I have several Python solutions created with VS Community 2013 with PTVS 2.1. PyLint works fine in all these projects. I recently installed VS Community 2015 with PTVS 2.2. I can open and run these VS 2013 projects in VS 2015 with no problems.…
user764397
1
vote
0 answers

Why can't I run Python in VS2013

I've installed Visual Studio 2013 with Update 4, as well as CPython and Python Tools for Visual Studio, but as soon as I tried to run: print("Hello World") an error occurred, saying Object reference not set to an instance of an object. Why am I…
Archangel08
  • 91
  • 10
1
vote
2 answers

Python access violation

Here is a Python 3.4 user, in VS 2013 and PTVS... I'd written a program to plot something by Matplotlib... The output had been generating and everything was ok... So, I closed VS and now I've opened it again after an hour, running the very script,…
User
  • 952
  • 2
  • 21
  • 43
1
vote
1 answer

When using VisualStudio's Python "Sent to Interactive" how to see all Variables in Locals, Watch or AutoWatch

I have started using VS with Python and I was expecting to have similar features as in R. What I need is to be able to edit and execute line by line ("Sent to Interactive" command) as well as see current values of the defined variables? This last…
user007
  • 1,122
  • 1
  • 10
  • 30
1
vote
1 answer

Visual Studio shows only attach and no run with PTVS RC

I downloaded PTVS RC today and installed it. After restarting VS, there was an error about importing Python Tools that said the following and solutions were not being loaded: No exports were found that match the constraint Based on this post here…
statBeginner
  • 829
  • 2
  • 9
  • 23
1
vote
0 answers

Failed to attach debug in python tool visual studio

I have a problem with "attach to process" in python tool in vs. If I attach to process before the next line:"import clr" , everything is ok and I can debug. If I attach after this line I failed to debug and get "... No symbols have been loaded..." I…
yudi
  • 13
  • 3
1
vote
1 answer

Django project won't work with Python Tools Visual Studio

I'm trying to get a Django project working with PTVS. The only reason I'm using it is because I have Azure credits and want to deploy there. In Visual Studio, I go to New Project > Python > Django. I chose "Add Virtual Environment". Here is the…
cheenbabes
  • 382
  • 1
  • 8
  • 17
1
vote
0 answers

Using psycopg2 in Ironpython (visual studio/PTVS)

I am a newbie in Python and I am trying to use Ironpython with PTVS to access a Postgres database. I had previously installed Python(x,y) and psycopg2 which I managed to use properly. However, realizing how painful it is (imo) to create GUIs with…
Rejerh
  • 33
  • 6
1
vote
1 answer

Effect a code change without restarting with Django and PTVS

In Django, code changes are immediately applied without restart of the web-server. This is really convenient specially to tune look and feel. To get debug support, I started using VS2013 with PTVS extension which support Django for my project. The…
user3612009
  • 655
  • 1
  • 6
  • 18
1
vote
1 answer

How to install mysql package for Visual Studio 2013 python tool

I am new to python. I installed the python tool on Visual Studio 2013. How do I install mysql package/module??? I need to write python code which will interact with mysql DB.
Yousuf Hossain
  • 172
  • 1
  • 12