Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 25 18:51
    viniciusmcesar commented #7093
  • Sep 24 09:49
    JordanBarnartt commented #7160
  • Sep 23 23:16
    StellaHuang95 assigned #7160
  • Sep 23 23:16
    StellaHuang95 commented #7160
  • Sep 23 23:00
    StellaHuang95 unlabeled #7160
  • Sep 23 23:00
    StellaHuang95 labeled #7160
  • Sep 23 06:38
    JordanBarnartt commented #7160
  • Sep 22 18:43
    AdamYoblick edited #7170
  • Sep 21 21:38
    AdamYoblick edited #7170
  • Sep 21 20:08
    StellaHuang95 commented #7160
  • Sep 21 16:40
    AdamYoblick commented #7170
  • Sep 21 16:27
    walterpg commented #7170
  • Sep 21 16:27
    AdamYoblick assigned #7170
  • Sep 21 16:27
    AdamYoblick opened #7170
  • Sep 21 16:27
    AdamYoblick labeled #7170
  • Sep 21 00:00
    StellaHuang95 unlabeled #7167
  • Sep 21 00:00
    StellaHuang95 labeled #7167
  • Sep 21 00:00
    StellaHuang95 commented #7167
  • Sep 20 21:14

    AdamYoblick on main

    Fix formatter crash when file d… (compare)

Alberto Garcia Illera
@illera88
it's fine. as long as I can use the 2.7 syntax is fine!
btw, the support for python and VS2017 is new right? I remember that there was no option back in the days and that's why I installed VS2013 along with VS2017
Steve Dower
@zooba
It's the same support (still PTVS inside), but we've become an official part of VS2017. If you follow https://aka.ms/PythonBlog you'll see our posts about it (over the last 12 months)
Alberto Garcia Illera
@illera88
nice!!
Thank you for your help! Gonna install ptvs in VS2017!
keep up the cool work!
Alberto Garcia Illera
@illera88
Hi @zooba . I'm debugging using ptvsd and it works great. I just have a question regarding modifying the debugged file. Is there any way to synchronize the modified files so the code that I modify in VS in my windows gets pushed to the Linux machine?
Right now i'm SCPing the files but it's very unpractical. Is there any better way I'm missing?
Steve Dower
@zooba
@illera88 Not right now, I'm afraid (#1237 captures the feature request). The best option right now is to add a build step to your .pyproj file (edit the project in an XML editor to start and then look up MSBuild Exec task) so that you can Ctrl+Shift+B to trigger the upload.
ruzrobert
@ruzrobert
Looks like PTVS is not supporting static methods in class?
class ACNet(object):
def create_global (net_scope):
PTVS is not showing me syntax for ACNet.create_global (shows just ( )), I think because he thinks, that there should be self, but it shouldn't, because method is static
ruzrobert
@ruzrobert
Okay, I understand now, @staticmethod is mandatory
kionay
@kionay
i tried out the PTVS clustering sample, which by default downloads a water treatment dataset and outputs a bunch of graphs. could anyone recommend a good resource to begin learning how to understand this output? How to interpret it. Surely there are many sources, but I didn't know if there is a particularly good source.
Denis Akhiyarov
@denfromufa
@kionay for clustering methods scikit-learn documentation is great
Yann Torres
@onedesert
Hey, I'm using last version "3.2.0" and "enable_attatch" retrieve and error about "No module named 'ptvsd.repl" anyone knows were I can report this bug? many thanks !
Steve Dower
@zooba
@onedesert Did you also update Visual Studio 2017 to the latest? You may not see the notification yet, but if you open the installer then it will let you update. ptvsd and VS are tightly linked and there were breaking changes between versions (and as you can tell, we are not and never have been using SemVer for this package)
melon
@melonux_twitter
Does PTVS fully support Visual Studio Code? In my case, ptvsd 3.0.0 can trigger breakpoints, but CALL STACK always display "Unknown Source", and debugger adapter usually crashes without error message.
Yann Torres
@onedesert
@zooba Many thanks ! I'll try, btw there is a question related to that (https://stackoverflow.com/questions/45686298/no-module-named-ptvsd-repl-in-python-remote-debug) in case anyone can provide more information.
Steve Dower
@zooba
@melonux_twitter Visual Studio Code still requires ptvsd<3. It has not been updated to use the newer releases (currently ptvsd is part of Visual Studio, and VSC is using their own copy of it)
melon
@melonux_twitter
@zooba Thank you. But I tried all versions of ptvsd, neither of 2.x.x is workable. It would be very cool if ptvsd can be used in Visual Studio Code :)
Ray Koopa
@RayKoopa
Hey there... I'm kinda confused now. I heard some guy saying only 3.1.0 works with VS2017, you say VS (which version?) was never upgraded to use 3.x. From my side, I can neither get 3.2.0 or 3.1.0 to work with VS2017 (15.3 update). Trying to debug Blender using my ptvsd 3.1.0 from my global Python installation, VS always claims it doesn't listen to connections or "the format of one argument does not meet the contract"... halp :(
Steve Dower
@zooba
@RayKoopa VS Code has not yet been updated for ptvsd 3. Since you are using Visual Studio 2017 15.3, you will need ptvsd==3.2.0.
Denis Akhiyarov
@denfromufa

@zooba @int19h sorry for hijacking this chat, but is there anyone in PTVS team who can review this code for properly finalizing and garbage collecting PyObject in pythonnet? I see that you use a lot of SuppressFinalize and safehandles, so you might be able to review this:

pythonnet/pythonnet#532

https://github.com/Microsoft/PTVS/search?utf8=%E2%9C%93&q=suppressfinalize&type=
https://github.com/Microsoft/PTVS/search?utf8=%E2%9C%93&q=safehandle&type=

The code is really mind-boggling to me.

Steve Dower
@zooba
@denfromufa Me too. Would love to be able to get up to speed on it, but afraid I can't spare the time this week
Joshua Barnett
@joshua-barnett

I cannot seem to get ptvsd (3.0.0) working with my Flask application.

I've set FLASK_DEBUG to false to prevent the live reload or werkzeug debugger causing issues.

I can see in netstat the python process waiting for the debugger to attach on port 5555.

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:5555            0.0.0.0:*               LISTEN      7/python

When I attempt to connect I just get.

Debug adapter process has terminated unexpectedly

With no information in the Debug Console as to why it failed.

If I reload VSCode and attempt to attach again it appears to connect, but again no output in the Debug Console and the breakpoints are all inactive.

Steve Dower
@zooba
@synthecypher VS Code still requires an earlier version of ptvsd, as it has not been updated to use the latest yet. Downgrade to ptvsd<3 on the remote machine and it should be fine.
Joshua Barnett
@joshua-barnett
@zooba are you sure its <3 most of the issues I've seen cite ptvsd==3.0.0.
Steve Dower
@zooba
@synthecypher You could be right. I don't work on VS Code, and currently ptvsd does not officially support VS Code (it's the other way around). If you ask on one of their sites then they'll be able to tell you the right answer.
scatterblak
@scatterblak_twitter
Testing..1...2..3....anyone around who knows how to get PTVS running on MSVS 2017?
Steve Dower
@zooba
@scatterblak_twitter It's in the main Visual Studio 2017 installer - see the instructions at https://docs.microsoft.com/visualstudio/python/vs-tutorial-01-00
scatterblak
@scatterblak_twitter
Nope. Not there. It's there, of course, in the community/preview version, but the actual production version doesn't have it anymore - it's gone. You also can't get to it with the additional instructions to go ahead and install MSVS, and then go into Ctrl->Add/Remove Programs and select 'Change' for MSVS. It's not there.
Steve Dower
@zooba
What do you mean "the actual production version"? Are you stuck on 15.0 for some reason and can't install 15.3?
scatterblak
@scatterblak_twitter
...it might be there if you had the preview. If you're one of the unlucky ones like me who paid for MSDN just to be able to do python dev in the MSVS IDE, and you didn't have the MSVS preview, Python will not be available to you unless you dig through and install it the old fashioned way. Enjoy.
Steve Dower
@zooba
@scatterblak_twitter I'm the lead dev on this project and am the one responsible for checking in changes to VS to make sure it appears in the installer. When I run the current installer, both Release and Preview, it is there, and I can see the telemetry showing that tens of thousands of people have installed and are using it.
This is clearly an issue with your configuration, and I would like to help you diagnose and fix it.
Now, when you open the VS installer, there is going to be a version number in the bottom right corner. Can you please tell me what it is?
Supakorn Rassameemasmuang
@supakorn-ras
To
NVM
To add, is PTVS in 15.3 still 3.0 or has it been updated to 3.2? Mine's still showing Python 3.0 in the about section.
Steve Dower
@zooba
There should also be a version number underneath any available versions of Visual Studio (e.g. "15.0", "15.3", etc.) - could you tell me what you see there?
@supakorn-ras In 15.3, it is 3.1. 15.4 when it releases will have 3.2. We don't update the 3.x.y "x" part of the number, but the "y" automatically updates and is enough for us to find the matching sources. Each Visual Studio version, however, has exactly one PTVS version, so if you're on the latest VS then you have the latest PTVS that is available to you.
(The reason we don't change the version too dramatically is to do with .NET assembly resolution. If you're familiar with that, you won't be surprised that we don't want to rock that boat too much :) )
Supakorn Rassameemasmuang
@supakorn-ras
@zooba Oh okay. Thanks for clarification. I thought that the release was stuck in nowhere and that we were using the old version.
Benjamin Van Renterghem
@BenjaVR
hi, does anyone have a good 'workflow' with PTVS and Pipenv? It'll be the standard soon enough while working with python: https://packaging.python.org/new-tutorials/installing-and-using-packages/#installing-pipenv
Alberto Garcia Illera
@illera88
Hi, time to time while debugging PTVS hangs and I can't do anything but closing the python shell. How can I know the PTVS version I have installed and update it if it's old?
it happens when dealing with multiple threads
Alberto Garcia Illera
@illera88
hello??
Steve Dower
@zooba

@illera88 Sorry to have missed your messages (I was travelling at the time). If you're using VS 2017 and it isn't prompting you to update, then you're on the latest. If you are doing remote debugging, then pip install -U ptvsd on the remote machine will make sure you have the latest debugger (which you'll need if you have the latest VS 2017).

However, if you're doing multithreaded debugging, it's equally likely that you've discovered a bug. We're doing some heavy work on our debugger right now (expect an announcement in the next week or two), so we're unlikely to consider a bugfix to the old one, but if you can report an issue with enough info for us to reproduce it we can make sure it works with the next version.

Alberto Garcia Illera
@illera88
I'll wait for the announcements. Thank you!
Alberto Garcia Illera
@illera88
Hi @zooba .
I'm importing a class I installed using pip and PTVS does not find it so it throws an error.
ModuleNotFoundError: No module named 'binance.websockets'; 'binance' is not a package. If I open a shell and do from binance.websockets import BinanceSocketManager it works fine. I've updated the intelligence db but it still says the same