Debugger not working with SQL Server 2017 and Python
See original GitHub issueEnvironment 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
- Debugger does not stop at breakpoints
- Program crashes in Microsoft code
- Program runs fine from the CLI
Expected behavior
- Debugger stops at defined breakpoints
- Program does not crash
Steps to reproduce:
- 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 (View
→Output
, 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 <module> 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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (1 by maintainers)
Top GitHub Comments
I’m using the first one. I’ll check the second one later. Not sure it exists
Brilliant! The models are indeed installed in the standalone tree but not in the instance tree. Copying those across made it work properly. You know, if you hadn’t jumped in, I would not have noticed that there were two directories at play here. Thanks a ton!.