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
0
votes
0 answers

Visual Studio - correct python indentation

I am working in source files in Python that are half written in spaces and half tabs for indentation. It is infuriating. Is there some tool to automatically fix this?
Carbon
  • 3,828
  • 3
  • 24
  • 51
0
votes
2 answers

Can't run Python script in Visual Studio

I have installed Python Tools for Visual Studio 2015. Also I have Python 3.6 installed. The main propblem is that i can't even run simple script like: print("Hello World") I cant' even see error properly. The window closes too fast. The only thing…
0
votes
1 answer

PTVS - Python environment name version mismatch

Python Tools for Visual Studio has recognised my Python 3.5 (Anaconda) environment, but then I upgraded the environment (using conda I think) to Python 3.6 and now the environment name doesn't match the Python version. See where I do…
Tom Hunter
  • 5,714
  • 10
  • 51
  • 76
0
votes
0 answers

PTVS - robobrowser giving Beautifulsoup error

I am a newbie at python, this is a simple code from different solution, it should generally work but I am receiving an error from Beautifulsoup (screen below) on markup not provided. I am using PTVS and python 3.5. Python code: from robobrowser…
surpavan
  • 1,372
  • 7
  • 34
  • 66
0
votes
2 answers

Extracting links and titles only

I am trying to extract links and titles for these links in an anime website, However, I am only able to extract the whole tag, I just want the href and the title. Here`s the code am using: import requests from bs4 import BeautifulSoup r =…
0
votes
1 answer

Beautiful soup isn't showing the links

I am trying to scrap an anime website for the anime episodes links and titles, but the output is showing nothing or shows [] only. This is the code am using: import requests from bs4 import BeautifulSoup r =…
AbdulAziz
  • 1
  • 4
0
votes
1 answer

Python Tools for Visual Studio and Unit Tests (PTVS)

Hopefully someone can give me a hand/few pointers. So I am currently working on some python scripts and wanted to get some tests written. My environment is as follows: MS Visual Studio Community 2015, v.14 Update 3 PTVS v.2.2.4…
Del
  • 416
  • 2
  • 13
0
votes
1 answer

loading of Python program in Visual Studio frequently fails first or second time

Wondering if others are experiencing this...I've got a fresh install of VS 2015 with PTVS 2016 and I almost always have to open the .sln file twice since the first time it opens the project will fail to load (this failure is displayed in the…
user3496060
  • 800
  • 10
  • 20
0
votes
0 answers

Isolating Python unittest from imports in other test modules

When running tests that target a specific method which uses reflection, I encounter the problem that the output of tests is dependent on whether I run them with PTVS ('run all tests' in Test Explorer) or with the command line Python tool (both on…
blagae
  • 2,342
  • 1
  • 27
  • 48
0
votes
1 answer

ironpython 2.7 visual studio 2013 ptvs 2.2 intellisense not working

I think the title is fairly descriptive of the problem I'm having. After some searching online I found that the IntelliSense databases can be refreshed by going to View->Other Windows->Python Environments In this way I was able to refresh the…
0
votes
1 answer

PTVS2.1 for VS2012 IntelliSense not work

I already refresh DB! The example can be work. My problem is IntelliSense is work on line 5, 6 But at the line 7, tree(parameter) can't not find the method xpath() IntelliSense is not work on line 7, why? I try to find the answer, someone say need…
someone be there
  • 213
  • 1
  • 2
  • 9
0
votes
1 answer

Where are the Python packages installed

I'm learning Python 3.5 using Visual Studio as my IDE. I installed the Python Tools for VS and looking at the code. I see there are a lot of from statements that reference Python packages: from __future__ import unicode_literals from django import…
Ray
  • 4,679
  • 10
  • 46
  • 92
0
votes
2 answers

PTVS 2.1 with Python 3.5 not working with Visual Studio 2010

I'm using VS2010 (outdated, but it's what my office uses) I installed PTVS 2.1. Then I chose to install Anaconda, as suggested in https://www.youtube.com/watch?v=_okUV47eM5c&list=PLReL099Y5nRdLgGAdrb_YeTdEnd23s6Ff&index=1 I selected and installed…
0
votes
0 answers

PTVS broken on VS2015 community Windows 10

I cannot make Python tools working on VS2015. I reinstalled VS several times and enable/disable the Python tools several times. I cannot open a .sln with a pyprojc it says ".pyproj : error : Object reference not set to an instance of an object."
chrisky
  • 63
  • 9
0
votes
2 answers

Can't remote debug a Python web site in Azure with vs2013

I deployed a bottle website on Azure but it shows 500 (internal error) and I can’t see the log. I refer to https://github.com/Microsoft/PTVS/wiki/Azure-Remote-Debugging to debug my project but it failed. It shows the error message as below. could…
Russell Bie
  • 341
  • 2
  • 11