AdamYoblick on hb_00719690-99d0-4d46-875c-cfd2b9712715_20220814101230862
AdamYoblick on main
LEGO: Pull request from lego/hb… (compare)
AdamYoblick on hb_00719690-99d0-4d46-875c-cfd2b9712715_20220813095043485
AdamYoblick on main
LEGO: Pull request from lego/hb… (compare)
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.
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.
@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.
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
{}
to be treated as code, and we haven't seen enough demand to prioritise the work (of significantly modifying our Python parser) over other items. We'll take your comment as a vote in favour. Thanks!
{}
means a lot of parser work. It might be an acceptable intermediate solution to extend the parser that it just accepts the prefix f
for strings (like f''
and f""
), so that the parsing after the f-string is less impacted than now an that the "invalid syntax" red lines go away.
simplejson
package from PyPIsitecustomize.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.