You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
Test discovery error, please check the configuration settings for the tests.
onDidChangeNotification @ notificationsAlerts.ts:40
console.ts:137 [Extension Host] Error Python Extension: 2020-03-15 20:51:37: Python Extension: displayDiscoverStatus [r [Error]: 2020-03-15 20:51:36.058657: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.2 at ChildProcess.<anonymous> (/root/.vscode-server/extensions/ms-python.python-2020.2.64397/out/client/extension.js:1:455844) at Object.onceWrapper (events.js:288:20) at ChildProcess.emit (events.js:200:13) at ChildProcess.EventEmitter.emit (domain.js:471:20) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)]
t.log @ console.ts:137
The culprit here is the automatically generated message of libcudart loading, of coarse inside those nice list-like brackets... I think this causes the parsing of the pytest discovery output to fail.
My current workaround
As a workaround I now did the following:
pip install pytest-env, to allow defining environment variables in the pytest.ini file
add the TF_CPP_MIN_LOG_LEVEL environment variable in the pytest.ini file, which mutes that libcuadart message
This way the libcudart message is no longer interfering with the automatic test discovery. However, it would be better if the test discovery could handle these type of interfering messages.
The text was updated successfully, but these errors were encountered:
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Language Serverpython.languageServer
setting: MicrosoftExpected behaviour
Automatic test discovery
Actual behaviour
Message: Test discovery error, please check the configuration settings for the tests.
Steps to reproduce:
FROM nvcr.io/nvidia/tensorflow:19.12-tf1-py3
import tensorflow as tf
statementLogs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)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
)If I run the Python command manually:
The culprit here is the automatically generated message of libcudart loading, of coarse inside those nice list-like brackets... I think this causes the parsing of the pytest discovery output to fail.
My current workaround
As a workaround I now did the following:
My pytest.ini now looks like this:
This way the libcudart message is no longer interfering with the automatic test discovery. However, it would be better if the test discovery could handle these type of interfering messages.
The text was updated successfully, but these errors were encountered: