Skip to content

Debugger not working with SQL Server 2017 and Python #1089

@gbritton1

Description

@gbritton1

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.2.1- OS and version: XXX
  • Python version (& distribution if applicable, e.g. Anaconda): XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX

Actual behavior

  1. Debugger does not stop at breakpoints
  2. Program crashes in Microsoft code
  3. Program runs fine from the CLI

Expected behavior

  1. Debugger stops at defined breakpoints
  2. Program does not crash

Steps to reproduce:

  1. On an machine with SQL Server 2017 and Microsoft Machine learning with Python installed, run the attached program

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

There is no output panel called Python

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)


console.ts:136 [Extension Host] (node:5764) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ console.ts:136

traceback

Express Edition will continue to be enforced.
Elapsed time: 00:00:01.6467579
Error: *** Exception: 'resourcePath'
Error in processing machine learning request.
TlcBridge error: Error: *** Exception: 'resourcePath'
Error in processing machine learning request.TlcBridge function failed. Please see the console output for more information.
Traceback (most recent call last):
File "c:\Users\Jerry\Documents\Pluralsight\Getting Started with Python on SQL Server\05 MicrosoftML\Demo\probably_pizza_featurize.py", line 23, in
get_sentiment(cols=dict(scores="comment"))
File "C:\Program Files\Microsoft SQL Server\MSSQL14.SQL_PYTHON\PYTHON_SERVICES\lib\site-packages\microsoftml\modules\featurize.py", line 209, in rx_featurize
telemetry_info=telemetry_info
File "C:\Program Files\Microsoft SQL Server\MSSQL14.SQL_PYTHON\PYTHON_SERVICES\lib\site-packages\microsoftml\utils\entrypoints.py", line 150, in run
ret = tlc_bridge(maml_code=maml_code, analysis_type="RunGraph", **kargs)
File "C:\Program Files\Microsoft SQL Server\MSSQL14.SQL_PYTHON\PYTHON_SERVICES\lib\site-packages\revoscalepy\utils\RxFunctionUtils.py", line 8, in wrapper
return func(*args,**kwds)
File "C:\Program Files\Microsoft SQL Server\MSSQL14.SQL_PYTHON\PYTHON_SERVICES\lib\site-packages\microsoftml\utils\tlc_bridge.py", line 171, in tlc_bridge
functionname=function_name, params=call_parameters)
File "C:\Program Files\Microsoft SQL Server\MSSQL14.SQL_PYTHON\PYTHON_SERVICES\lib\site-packages\revoscalepy\RxSerializable.py", line 358, in rx_native_call
ret = px_call(functionname, params)
RuntimeError: revoscalepy function failed.
2018-03-15_19-56-17
2018-03-15_19-56-05

probably_pizza_featurize.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-debuggingbugIssue identified by VS Code Team member as probable bugwindows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions