This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Python-Extension: Debugger not running with Python 2.7 #2112
Comments
Can you try with the new debugger? Instructions here on how to turn it on. |
No, still the same result (installed and reloaded the extension and the editor).
cd 'd:\temp\test2'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'C:\Python27\ArcGIS10.4\python.exe' 'c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\ptvsd_launcher.py' '--default' '--client' '--host' 'localhost' '--port' '52565' 'd:\temp\Testöaäpui\test2.py'
Traceback (most recent call last):
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_comm.py", line 283, in _on_run
self.process_net_command_json(self.global_debugger_holder.global_dbg, json_contents)
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_process_net_command_json.py", line 164, in process_net_command_json
cmd = on_request(py_db, request)
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_process_net_command_json.py", line 490, in on_setbreakpoints_request
py_db, filename, btype, breakpoint_id, line, condition, func_name, expression, suspend_policy, hit_condition, is_logpoint, adjust_line=True)
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_api.py", line 424, in add_breakpoint
py_db.apply_files_filter(self._DummyFrame(filename), filename, False)
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\pydevd.py", line 964, in apply_files_filter
if (self._is_libraries_filter_enabled or force_check_project_scope) and not self.in_project_scope(frame):
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\pydevd.py", line 866, in in_project_scope
file_type = self.get_file_type(frame, abs_real_path_and_basename)
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\pydevd.py", line 705, in get_file_type
if self.dont_trace_external_files(abs_real_path_and_basename[0]):
File "c:\Users\bkor\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\old_ptvsd\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_api.py", line 758, in custom_dont_trace_external_files
return abs_path.startswith(start_patterns) or abs_path.endswith(end_patterns)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 12: ordinal not in range(128)
Greetings,
Didi
Von: Karthik Nadig <notifications@github.com>
Gesendet: Donnerstag, 12. März 2020 18:31
An: microsoft/ptvsd <ptvsd@noreply.github.com>
Cc: Palmetzhofer Dietmar <Dietmar.Palmetzhofer@vorarlberg.at>; Author <author@noreply.github.com>
Betreff: Re: [microsoft/ptvsd] Python-Extension: Debugger not running with Python 2.7 (#2112)
Can you try with the new debugger? Instructions here on how to turn it on.
#2104<#2104>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#2112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGEBDAOJ5RTOBJHGCBP2BDRHEL4HANCNFSM4LGRRJ6A>.
|
I followed the install-instructions, but it seems that the experimental debugger is not used, I do not get these messages mentioned in the link you sent me.
Greetings,
Didi
Von: Karthik Nadig <notifications@github.com>
Gesendet: Donnerstag, 12. März 2020 18:31
An: microsoft/ptvsd <ptvsd@noreply.github.com>
Cc: Palmetzhofer Dietmar <Dietmar.Palmetzhofer@vorarlberg.at>; Author <author@noreply.github.com>
Betreff: Re: [microsoft/ptvsd] Python-Extension: Debugger not running with Python 2.7 (#2112)
Can you try with the new debugger? Instructions here on how to turn it on.
#2104<#2104>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#2112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGEBDAOJ5RTOBJHGCBP2BDRHEL4HANCNFSM4LGRRJ6A>.
|
@dpalmetzvbg Check these settings, they should both be checked: If that do not fix then check the extension folder to see if multiple version of python extension are installed? If that does not work, please share your settings.json (redact any personal information) |
I reinstalled the python extension, and there is only one extension, and also reinstalled the experimental extension, but it still does not work.
Here are my settings:
{
"python.pythonPath": "C:\\Python27\\ArcGIS10.4\\python.exe",
"python.venvFolders": [
"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python",
"C:\\<somefolder>\\Python\\VirtualEnv\\Django"
],
"python.linting.mypyCategorySeverity.error": "Information",
"telemetry.enableTelemetry": false,
"http.proxy": <proxy-settings>",
"http.proxyStrictSSL": false,
"http.proxySupport": "on",
"http.systemCertificates": false,
"sqltools.useNodeRuntime": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.jediEnabled": false,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"python.experiments.optInto": [
"DebugAdapterFactory - experiment",
"PtvsdWheels37 - experiment",
],
}
Von: Karthik Nadig <notifications@github.com>
Gesendet: Montag, 16. März 2020 17:49
An: microsoft/ptvsd <ptvsd@noreply.github.com>
Cc: Palmetzhofer Dietmar <Dietmar.Palmetzhofer@vorarlberg.at>; Mention <mention@noreply.github.com>
Betreff: Re: [microsoft/ptvsd] Python-Extension: Debugger not running with Python 2.7 (#2112)
@dpalmetzvbg<https://github.com/dpalmetzvbg> Check these settings, they should both be checked:
#2104 (comment)<#2104 (comment)>
If that do not fix then check the extension folder to see if multiple version of python extension are installed?
If so, then delete them all and follow instructions again #2104<#2104>
If that does not work, please share your settings.json (redact any personal information)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGEBDCBHLIGBPSWZXZFHQ3RHZJ6PANCNFSM4LGRRJ6A>.
|
Now the experimental debugger is running, had to enable the telmetry-setting (the world belongs to those who read ‘till the end).
But still no success:
${env:DEBUGPY_LAUNCHER_PORT}='63681'; & 'C:\Python27\ArcGIS10.4\python.exe' 'c:\Users\<user>\.vscode\extensions\ms-python.python-2020.4.68094-dev\pythonFiles\lib\python\debugpy\no_wheels\debugpy\launcher' 'd:\temp\Testöaäpui\test2.py'
debugpy 1.0.0b3
See https://aka.ms/debugpy for documentation.
Usage: debugpy [--listen | --connect] [<address>:]<port>
[--wait-for-client]
[--configure-<name> <value>]...
[--log-to <path>] [--log-to-stderr]
<filename> | -m <module> | -c <code> | --pid <pid>
[<arg>]...
Error: 'ascii' codec can't decode byte 0xf6 in position 12: ordinal not in range(128)
Von: Karthik Nadig <notifications@github.com>
Gesendet: Montag, 16. März 2020 17:49
An: microsoft/ptvsd <ptvsd@noreply.github.com>
Cc: Palmetzhofer Dietmar <Dietmar.Palmetzhofer@vorarlberg.at>; Mention <mention@noreply.github.com>
Betreff: Re: [microsoft/ptvsd] Python-Extension: Debugger not running with Python 2.7 (#2112)
@dpalmetzvbg<https://github.com/dpalmetzvbg> Check these settings, they should both be checked:
#2104 (comment)<#2104 (comment)>
If that do not fix then check the extension folder to see if multiple version of python extension are installed?
If so, then delete them all and follow instructions again #2104<#2104>
If that does not work, please share your settings.json (redact any personal information)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGEBDCBHLIGBPSWZXZFHQ3RHZJ6PANCNFSM4LGRRJ6A>.
|
You're hitting microsoft/debugpy#69 now. We already have a fix, but until it gets into a new release, the workaround is to not use paths with non-ASCII characters on Python 2.7. |
Yes, seems to be the same problem. Waiting for the fix.
Von: Pavel Minaev <notifications@github.com>
Gesendet: Dienstag, 17. März 2020 09:03
An: microsoft/ptvsd <ptvsd@noreply.github.com>
Cc: Palmetzhofer Dietmar <Dietmar.Palmetzhofer@vorarlberg.at>; Mention <mention@noreply.github.com>
Betreff: Re: [microsoft/ptvsd] Python-Extension: Debugger not running with Python 2.7 (#2112)
You're hitting microsoft/debugpy#69<microsoft/debugpy#69> now. We already have a fix, but until it gets into a new release, the workaround is to not use paths with non-ASCII characters on Python 2.7.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGEBDGP6VTIIE4GPKLJAQDRH4VE7ANCNFSM4LGRRJ6A>.
|
Thank you for confirming! I'm going to close this issue as a duplicate. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When trying to make a python-program with VSCode (Python 2.7.14) and run the debugger, an exception occurse. The program is very small:
Everything works perfectly well with python-3 environments.
Running without debugger is possible.
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): XXXpython.languageServer
setting: XXXExpected behaviour
The debugger should start.
Actual behaviour
Exception is thrown.
Steps to reproduce:
Create a pyhton-file, save it and start the debugger.
Logs
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: