Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Cells Cannot launch Jupyter #3190

Closed
awbruch opened this issue Jul 31, 2019 · 17 comments
Closed

Run Cells Cannot launch Jupyter #3190

awbruch opened this issue Jul 31, 2019 · 17 comments

Comments

@awbruch
Copy link

awbruch commented Jul 31, 2019

Environment data

Version: 1.36.1 (user setup)
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:59:35.033Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17763

  • Extension version (available under the Extensions sidebar): 2019.6.24221
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.3, Miniconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda

Expected behaviour

Run cell to send code to Python Interactive Window

Actual behaviour

Running Cell fails and raises error "Running Cells requires Jupyter notebooks to be installed"

Note: running command python -m jupyter notebook --version in integrated terminal works fine, and returns 6.0.0. Also confirmed that launching jupyter notebook from terminal works fine.

Behavior is very similar to microsoft/vscode-python#5102 and microsoft/vscode-python#6763, not sure if related to recent Python 3.7.3 upgrade. Log from developer tools is attached below.

image

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)

console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Loading web panel. Panel is notset
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Loading web view...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Web view created.
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Cached data exists ActivatedEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: getActivatedEnvironmentVariables, Class name = b, completed in 0ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"C:\\Users\\Alex\\Miniconda3\\envs\\vanilla\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Users\\Alex\\Miniconda3\\envs\\vanilla","fileHash":"0667b74e8cb85e57493d8545e441600c788c54ce29b4742d1a7bb1cc6aa8b2baccb368a1393802c1a84657fd5e347aeb34a7ecfa370a4e50d54bc1e2911bba14","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Users\\Alex\\Miniconda3\\envs\\vanilla","envName":"vanilla","displayName":"Python 3.7.3 64-bit ('vanilla': conda)"}, Arg 3: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:48: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:49: Error: Traceback (most recent call last):
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\jupyter.py", line 4, in <module>
    main()
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\jupyter_core\command.py", line 230, in main
    command = _jupyter_abspath(subcommand)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\jupyter_core\command.py", line 133, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.
 for C:\Users\Alex\Miniconda3\envs\vanilla\python.exe
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:49: Error: Traceback (most recent call last):
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\notebook\__main__.py", line 4, in <module>
    from notebook import notebookapp as app
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\notebook\notebookapp.py", line 47, in <module>
    from zmq.eventloop import ioloop
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\__init__.py", line 47, in <module>
    from zmq import backend
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.
 for C:\Users\Alex\Miniconda3\envs\vanilla\python.exe
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:49: Active interpreter does not support notebook. Interpreter is Python 3.7.3 64-bit ('vanilla': conda).
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:49: Cached data exists ActivatedEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:49: Cached data exists ActivatedEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:49: getActivatedEnvironmentVariables, Class name = b, completed in 1ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"C:\\Users\\Alex\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Users\\Alex\\Miniconda3","fileHash":"c1656e1bcabec47cc9849dede716b432e83d3324b79c0d093a0e3e9a5ea6e3b75b767d6178404742e3a437622b5db8726cad0c87e34a92f6010a3ff3799eb01f","companyDisplayName":"Anaconda, Inc.","type":"Conda","envName":"Miniconda3","envPath":"C:\\Users\\Alex\\Miniconda3","displayName":"Python 3.7.1 64-bit ('Miniconda3': conda)"}, Arg 3: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:49: getActivatedEnvironmentVariables, Class name = b, completed in 1ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"C:\\Users\\Alex\\Miniconda3\\envs\\vanilla\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Users\\Alex\\Miniconda3\\envs\\vanilla","fileHash":"0667b74e8cb85e57493d8545e441600c788c54ce29b4742d1a7bb1cc6aa8b2baccb368a1393802c1a84657fd5e347aeb34a7ecfa370a4e50d54bc1e2911bba14","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Users\\Alex\\Miniconda3\\envs\\vanilla","envName":"vanilla","displayName":"Python 3.7.3 64-bit ('vanilla': conda)"}, Arg 3: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:49: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:50: Error: C:\Users\Alex\Miniconda3\python.exe: No module named jupyter
 for C:\Users\Alex\Miniconda3\python.exe
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:50: Error: Traceback (most recent call last):
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\jupyter.py", line 4, in <module>
    main()
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\jupyter_core\command.py", line 230, in main
    command = _jupyter_abspath(subcommand)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\jupyter_core\command.py", line 133, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.
 for C:\Users\Alex\Miniconda3\envs\vanilla\python.exe
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:50: Error: C:\Users\Alex\Miniconda3\python.exe: No module named notebook
 for C:\Users\Alex\Miniconda3\python.exe
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Request for onigasm file at C:\Users\Alex\.vscode\extensions\ms-python.python-2019.6.24221\out\client\node_modules\onigasm\lib\onigasm.wasm
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Searching for token colors ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Attempting search for colors ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Searching for token colors ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Attempting search for colors ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Loading colors from C:\Users\Alex\.vscode\extensions\zhuangtongfa.material-theme-2.26.0\themes\OneDark-Pro.json ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Loading colors from C:\Users\Alex\.vscode\extensions\zhuangtongfa.material-theme-2.26.0\themes\OneDark-Pro.json ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Attempting search for colors ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Loading base colors from C:\Users\Alex\.vscode\extensions\zhuangtongfa.material-theme-2.26.0\themes\OneDark-Pro.json ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Attempting search for colors ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Loading base colors from C:\Users\Alex\.vscode\extensions\zhuangtongfa.material-theme-2.26.0\themes\OneDark-Pro.json ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Using colors to generate CSS ...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:50: Using colors to generate CSS ...
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:50: Error: Traceback (most recent call last):
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\notebook\__main__.py", line 4, in <module>
    from notebook import notebookapp as app
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\notebook\notebookapp.py", line 47, in <module>
    from zmq.eventloop import ioloop
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\__init__.py", line 47, in <module>
    from zmq import backend
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "C:\Users\Alex\Miniconda3\envs\vanilla\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.
 for C:\Users\Alex\Miniconda3\envs\vanilla\python.exe
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Warn Python Extension: 2019-07-31 14:02:50: { [Error: spawn jupyter ENOENT	at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)	at onErrorNT (internal/child_process.js:407:16)	at process._tickCallback (internal/process/next_tick.js:63:19)]  errno: 'ENOENT',  code: 'ENOENT',  syscall: 'spawn jupyter',  path: 'jupyter',  spawnargs: [ 'notebook', '--version' ] }
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
notificationsAlerts.ts:40 Running cells requires Jupyter notebooks to be installed.
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:558
addNotification @ notifications.ts:156
notify @ notificationService.ts:55
r @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Error Python Extension: 2019-07-31 14:02:50: { [Error: Running cells requires Jupyter notebooks to be installed.	at j.module.exports.j.constructor.load (C:\Users\Alex\.vscode\extensions\ms-python.python-2019.6.24221\out\client\extension.js:75:483169)	at process._tickCallback (internal/process/next_tick.js:68:7)]  action: 'https://aka.ms/pyaiinstall',  actionTitle: 'Get more help' }
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:38
_doInvokeHandler @ rpcProtocol.ts:394
_invokeHandler @ rpcProtocol.ts:379
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:558
a @ ipc.net.ts:421
e @ ipc.net.ts:428
fire @ event.ts:558
_receiveMessage @ ipc.net.ts:715
S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578
fire @ event.ts:558
acceptChunk @ ipc.net.ts:236
_register._socket.onData.e @ ipc.net.ts:197
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:134 [Extension Host] Info Python Extension: 2019-07-31 14:02:52: Request for tmlanguage file.
webviewElement.ts:363 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:363 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-resource:/c%3A/Users/Alex/.vscode/extensions/ms-python.python-2019.6.24221/out/datascience-ui/history-react/editor.worker.js' cannot be accessed from origin 'null'.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2019

This is a path problem with our conda activation. Not specific to datascience I believe.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2019

@awbruch I believe you can workaround this problem by starting VS code from the conda prompt.

@awbruch
Copy link
Author

awbruch commented Aug 2, 2019

@rchiodo Just ran a couple tests and the workaround seems to work for me. Thanks for the help! Is there a timeline for a long-term fix or should I just stay tuned and check after VSCode updates?

@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

Not sure if we're going to be able to fix it or not. We can't repro it in house yet. I suspect we're not setting paths correctly for some reason, but it seems to work just fine on all of our local machines.

The only way I can think of fixing this would be to deliver private bits to people experiencing the problem and add a bunch more logging until we can determine the root cause.

So to answer your question, I think it's going to be a while.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

@DonJayamanne I don't believe this is a datascience issue. It's a conda activation issue.

@awbruch
Copy link
Author

awbruch commented Aug 2, 2019

Okay thanks. Running from the command prompt is not an absolute deal-breaker right now. Is there anything I can supply/try on my end that could help be of more diagnostic help?

@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

If you're willing to try the insider's build, I can try adding a bunch of extra logging to it. Probably take me an hour or so.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

Oh and before we do that, can you go to the conda env you're using and run 'conda info' and put the results here.

Here's what mine says:

(jupyternew) F:\vscode-python-4>conda info

     active environment : jupyternew
    active env location : C:\Users\rchiodo.REDMOND\AppData\Local\Continuum\anaconda3\envs\jupyternew
            shell level : 4
       user config file : C:\Users\rchiodo.REDMOND\.condarc
 populated config files :
          conda version : 4.6.11
    conda-build version : 3.17.8
         python version : 3.7.3.final.0
       base environment : C:\Users\rchiodo.REDMOND\AppData\Local\Continuum\anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\rchiodo.REDMOND\AppData\Local\Continuum\anaconda3\pkgs
                          C:\Users\rchiodo.REDMOND\.conda\pkgs
                          C:\Users\rchiodo.REDMOND\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\rchiodo.REDMOND\AppData\Local\Continuum\anaconda3\envs
                          C:\Users\rchiodo.REDMOND\.conda\envs
                          C:\Users\rchiodo.REDMOND\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.6.11 requests/2.21.0 CPython/3.7.3 Windows/10 Windows/10.0.18362
          administrator : False
             netrc file : None
           offline mode : False

@awbruch
Copy link
Author

awbruch commented Aug 2, 2019

Here is the output of conda info. I can run the insiders build for you if needed, but I am in and out of meetings today and tomorrow and will not be able to give it much attention until Sunday. However, I am able to reproduce the error on two machines with almost identical conda environments, so we might be able to try some A/B testing if needed.

(vanilla) C:\Users\Alex>conda info

     active environment : vanilla
    active env location : C:\Users\Alex\Miniconda3\envs\vanilla
            shell level : 2
       user config file : C:\Users\Alex\.condarc
 populated config files :
          conda version : 4.7.10
    conda-build version : not installed
         python version : 3.7.1.final.0
       virtual packages :
       base environment : C:\Users\Alex\Miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\Alex\Miniconda3\pkgs
                          C:\Users\Alex\.conda\pkgs
                          C:\Users\Alex\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\Alex\Miniconda3\envs
                          C:\Users\Alex\.conda\envs
                          C:\Users\Alex\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.10 requests/2.22.0 CPython/3.7.1 Windows/10 Windows/10.0.17763
          administrator : False
             netrc file : None
           offline mode : False


@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

Okay I submitted a change that should at least log all of the environment variables we set before trying to start jupyter.

If you install the insider's build (install from the Extensions tab's ... button) and repro the issue, we can compare the environment we generate to your normal conda environment.

No rush though. Whenever you get the chance.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

Sorry should have said it takes about an hour for the insider's build to finish. So an hour from now the logging change will be there.

@greazer
Copy link
Member

greazer commented Aug 2, 2019

I believe there is a difference between how the windows path is set when activating an environment created in a miniconda environment vs an anaconda environment. Miniconda's conda.bat (last I checked) will not update the windows path to find needed dll's for some python packages. Anaconda's will.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 5, 2019

I'm reproing this now with miniconda. I get the same dll load failure.

So one workaround is to not use miniconda, but the full anaconda distribution.

@awbruch
Copy link
Author

awbruch commented Aug 5, 2019

Ah okay, good to know where this is coming from then. Looking at microsoft/vscode-python#5792, there might be a lot of moving parts from (mini)conda and Jupyter to get a long-term fix in place right now. It might best to stick with either workaround for now. Thanks for looking into this on so many fronts.

Would you still like to see the logs from my machine?

@rchiodo
Copy link
Contributor

rchiodo commented Aug 5, 2019

No that's okay. I can repro locally so that should be good enough. Thanks for the help.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 5, 2019

@awbruch I believe I've fixed this problem. If you want to try it out, the next insider's build will have the fix.

Otherwise it should show up in our next release.

@awbruch
Copy link
Author

awbruch commented Aug 5, 2019

Wow thanks, that was super quick! I will just pick up the new changes with the next release since we have decent temporary fixes in place.

Thanks for everything that you all are doing, VSCode has been hugely helpful to my work and it's only getting better!

@rchiodo rchiodo closed this as completed Aug 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants