question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger not working with SQL Server 2017 and Python

See original GitHub issue

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 <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. 2018-03-15_19-56-17 2018-03-15_19-56-05

probably_pizza_featurize.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gbritton1commented, Apr 5, 2018

I’m using the first one. I’ll check the second one later. Not sure it exists

0reactions
gbritton1commented, Apr 6, 2018

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!.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger not working with SQL Server 2017 and Python #1089
On an machine with SQL Server 2017 and Microsoft Machine learning with Python installed, run the attached program. Logs. Output for Python in ......
Read more >
Known issues for Python and R - SQL Server Machine ...
This article describes known problems or limitations with the Python and R components that are provided in SQL Server Machine Learning ...
Read more >
Python Programming with SQL debugging error - Stack Overflow
Get posts from database. def GetAllPosts(): '''Get all the posts from the database, sorted with the newest first.
Read more >
Debugging stored procedures in SQL Server Management ...
In this article, we will explain practically how SSMS can be used to debug stored procedures in SQL Server by working through a...
Read more >
Attaching to python.exe debugging not working
Attach to a python.exe process via CTRL+ALT+P in a Debug configuration, VS doesn't stop on breakpoints. Also the "Diagnostic Tools" window says it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found