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.

VS Code does not properly activate anaconda 5.3 -> Cannot import numpy, DLL not found

See original GitHub issue

Environment data

  • VS Code version: 1.27.2
  • Extension version (available under the Extensions sidebar): 2018.9.1
  • OS and version: Windows 10 Pro w/ Oct 2018 update
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda 5.3.0 with Python 3.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: numpy 1.15.1

Actual behavior

import numpy

in Anaconda 5.3.0, Python 3.7, VS Code, leads to:

cd 'c:\Users\Joey\OneDrive\Documents\Code\Python\EdgarScanner\CvxEstimatorLab'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; ${env:PYTHONPATH}='c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd'; & 'C:\Users\Joey\Anaconda3\python.exe' '-m' 'ptvsd' '--host' 'localhost' '--port' '64871' 'c:\Users\Joey\OneDrive\Documents\Code\Python\EdgarScanner\CvxEstimatorLab\deap_feature_selection.py'
Traceback (most recent call last):
  File "C:\Users\Joey\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
    from . import multiarray
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Joey\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Joey\Anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\__main__.py", line 211, in <module>
    singlesession=args.single_session)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\__main__.py", line 205, in main
    debug_main(addr, name, kind, *extra, **kwargs)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_local.py", line 30, in debug_main
    run_file(address, name, *extra, **kwargs)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_local.py", line 64, in run_file
    run(argv, addr, **kwargs)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_local.py", line 125, in _run
    _pydevd.main()
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_vendored\pydevd\pydevd.py", line 1743, in main
    debugger.connect(host, port)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_vendored\pydevd\pydevd.py", line 1099, in run
    return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_vendored\pydevd\pydevd.py", line 1106, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "c:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\pythonFiles\experimental\ptvsd\ptvsd\_vendored\pydevd\_pydev_imps\_pydev_execfile.py", line 25, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "c:\Users\Joey\OneDrive\Documents\Code\Python\EdgarScanner\CvxEstimatorLab\deap_feature_selection.py", line 7, in <module>
    import numpy as np
  File "C:\Users\Joey\Anaconda3\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs
  File "C:\Users\Joey\Anaconda3\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Users\Joey\Anaconda3\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Users\Joey\Anaconda3\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Users\Joey\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.

But inside an Anaconda Prompt, importing works.

Expected behavior

Should be able to import numpy. This is the first Anaconda release where you have to explicitly activate the anaconda environment to import numpy. According to @mingwandroid in https://github.com/ContinuumIO/anaconda-issues/issues/10257#issuecomment-432870924 this is the new normal. This is also an issue in VS 2017’s PTVS: https://github.com/Microsoft/PTVS/issues/4820

I also tried the latest ms-python-insiders.vsix, and it also has this problem.

Steps to reproduce:

  1. Install Anaconda 5.3.0
  2. Install VS Code with Python extension
  3. Create a script with one line: import numpy
  4. Run the script under Anaconda 5.3.0 by selecting the interpreter
  5. Observe previously-mentioned error

Logs

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

##########Linting Output - pylint##########
************* Module deap_feature_selection
10,0,error,E0401:Unable to import 'kibot'
13,0,error,E0401:Unable to import 'forecast'
14,0,error,E0401:Unable to import 'forecast_funcs'
15,0,error,E0401:Unable to import 'mj_funcs'
19,0,error,E0401:Unable to import 'joeys_helpers'
23,0,error,E0401:Unable to import 'spread_estimates'
26,0,error,E0401:Unable to import 'joeys_helpers'
93,49,error,E1101:Module 'deap.creator' has no 'FitnessMax' member
112,8,warning,W0612:Unused variable 'i'
162,19,warning,W0109:Duplicate key 'day_delta' in dictionary
182,20,warning,W0109:Duplicate key 'day_delta' in dictionary
214,35,error,E1101:Module 'deap.creator' has no 'Individual' member
216,22,error,E1101:Instance of 'Toolbox' has no 'individual' member
232,10,error,E1101:Instance of 'Toolbox' has no 'population' member
240,34,error,E1101:Instance of 'Toolbox' has no 'evaluate' member
241,31,error,E1101:Instance of 'Toolbox' has no 'evaluate' member
264,20,error,E1101:Instance of 'Toolbox' has no 'select' member
266,29,error,E1101:Instance of 'Toolbox' has no 'clone' member
273,16,error,E1101:Instance of 'Toolbox' has no 'mate' member
284,16,error,E1101:Instance of 'Toolbox' has no 'mutate' member
294,37,error,E1101:Instance of 'Toolbox' has no 'evaluate' member
25,0,warning,W0614:Unused import plt from wildcard import
25,0,warning,W0614:Unused import cp from wildcard import
25,0,warning,W0614:Unused import product_dict from wildcard import
25,0,warning,W0614:Unused import plot_costparam_preds from wildcard import
25,0,warning,W0614:Unused import generate_transaction_dfs from wildcard import
25,0,warning,W0614:Unused import score_costparam_preds from wildcard import
25,0,warning,W0614:Unused import generate_costparam_preds from wildcard import
25,0,warning,W0614:Unused import append_usdollar_to_returns from wildcard import
25,0,warning,W0614:Unused import convert_to_cvx_format from wildcard import
25,0,warning,W0614:Unused import generate_bounded_ret_models from wildcard import
25,0,warning,W0614:Unused import generate_mpo_estimates from wildcard import
25,0,warning,W0614:Unused import model_param_gen from wildcard import
25,0,warning,W0614:Unused import spread_feature_params from wildcard import
25,0,warning,W0614:Unused import feat_params_wrapper from wildcard import
25,0,warning,W0614:Unused import generate_ret_target_dfs from wildcard import
25,0,warning,W0614:Unused import generate_ret_est_avg_high_low from wildcard import
25,0,warning,W0614:Unused import score_return_preds from wildcard import
25,0,warning,W0614:Unused import convert_series_to_df from wildcard import
25,0,warning,W0614:Unused import product from wildcard import
25,0,warning,W0614:Unused import gen2 from wildcard import

------------------------------------------------------------------

Your code has been rated at 4.59/10 (previous run: 4.59/10, +0.00)

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

 INFO no standard startup: not just one text editor
console.ts:136 [IPC Library: File Watcher (nsfw)] (node:7484) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added. Use emitter.setMaxListeners() to increase limit
t.log @ console.ts:136
console.ts:136 [Extension Host] Failed to get interpreter information for 'C:\Users\Joey\Anaconda37\python.exe' Error: spawn C:\Users\Joey\Anaconda37\python.exe ENOENT
	at _errnoException (util.js:1024:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
	at onErrorNT (internal/child_process.js:372:16)
	at _combinedTickCallback (internal/process/next_tick.js:138:11)
	at process._tickCallback (internal/process/next_tick.js:180:9)
t.log @ console.ts:136
console.ts:136 [Extension Host] Python Extension: Failed to get conda environment list from conda Error: spawn conda ENOENT
	at _errnoException (util.js:1024:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
	at onErrorNT (internal/child_process.js:372:16)
	at _combinedTickCallback (internal/process/next_tick.js:138:11)
	at process._tickCallback (internal/process/next_tick.js:180:9)
console.ts:136 [Extension Host] Python Extension: Linter 'pylint' is not installed. Please install it or select another linter". Error: spawn C:\Users\Joey\Anaconda37\python.exe ENOENT
	at _errnoException (util.js:1024:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
	at onErrorNT (internal/child_process.js:372:16)
	at _combinedTickCallback (internal/process/next_tick.js:138:11)
	at process._tickCallback (internal/process/next_tick.js:180:9)
t.log @ console.ts:136
notificationsAlerts.ts:41 Linter pylint is not installed.
t.onDidNotificationChange @ notificationsAlerts.ts:41
console.ts:136 [Extension Host] Error: Language Server not started.
	at JediProxy.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:328:51)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:15:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:11:12)
	at JediProxy.spawnProcess (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:326:16)
	at JediProxy.initialize (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:202:21)
	at JediProxy.restartLanguageServer (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:300:21)
	at JediProxy.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:275:18)
	at Generator.next (<anonymous>)
	at fulfilled (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\providers\jediProxy.js:12:58)
	at <anonymous>
t.log @ console.ts:136
console.ts:136 [Extension Host] Python Extension: Error in debugger Banner Error: Missing required @injectable annotation in: Random.
	at getTargets (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\reflection_utils.js:20:15)
	at Object.getDependencies (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\reflection_utils.js:11:19)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\planner.js:106:51
	at Array.forEach (<anonymous>)
	at _createSubRequests (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\planner.js:94:20)
	at Object.plan (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\planner.js:129:9)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\container\container.js:316:37
	at Container._get (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\container\container.js:309:44)
	at Container.get (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\container\container.js:228:21)
	at ServiceContainer.get (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\ioc\container.js:28:89)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:163:55)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:14:12)
	at DebuggerBanner.getDebuggerLaunchThresholdCounter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:158:16)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:135:22)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:14:12)
	at DebuggerBanner.passedThreshold (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:133:16)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:72:30)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:14:12)
	at DebuggerBanner.shouldShow (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:68:16)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:188:37)
	at Generator.next (<anonymous>)
	at fulfilled (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:15:58)
	at <anonymous>
t.log @ console.ts:136
errors.ts:48 WARNING: Promise with no error callback:undefined
errors.ts:49 Error: Promise did not implement oncancel
    at n.Class.derive._oncancel._cancelAction (winjs.base.js:1675)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._oncancel._run (winjs.base.js:1089)
    at n.Class.derive._oncancel.cancel (winjs.base.js:979)
    at Object.enter (winjs.base.js:797)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at Object.onLastListenerRemove (ipc.ts:359)
    at Object.dispose (event.ts:103)
    at Object.onLastListenerRemove (ipc.cp.ts:157)
    at Object.dispose (event.ts:103)
    at n.Class.derive._oncancel.t.collectResultsFromEvent [as _oncancel] (searchService.ts:555)
    at n.Class.derive._oncancel._cancelAction (winjs.base.js:1673)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._oncancel._run (winjs.base.js:1089)
    at n.Class.derive._oncancel.cancel (winjs.base.js:979)
    at Object.enter (winjs.base.js:797)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at winjs.base.js:1874
    at Array.forEach (<anonymous>)
    at n.Class.derive._oncancel.n.Class.derive.join [as _oncancel] (winjs.base.js:1871)
    at n.Class.derive._oncancel._cancelAction (winjs.base.js:1673)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._oncancel._run (winjs.base.js:1089)
    at n.Class.derive._oncancel.cancel (winjs.base.js:979)
    at n.Class.derive._creator._cancelAction (winjs.base.js:1332)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at Object.enter (winjs.base.js:797)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at n.Class.derive._creator._cancelAction (winjs.base.js:1332)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at n.Class.derive._creator._cancelAction (winjs.base.js:1332)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at n.Class.derive._creator._cancelAction (winjs.base.js:1332)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at n.Class.derive._oncancel.t.search [as _oncancel] (searchService.ts:183)
    at n.Class.derive._oncancel._cancelAction (winjs.base.js:1673)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._oncancel._run (winjs.base.js:1089)
    at n.Class.derive._oncancel.cancel (winjs.base.js:979)
    at Object.enter (winjs.base.js:797)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at n.Class.derive._creator._cancelAction (winjs.base.js:1332)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at winjs.base.js:1874
    at Array.forEach (<anonymous>)
    at n.Class.derive._oncancel.n.Class.derive.join [as _oncancel] (winjs.base.js:1871)
    at n.Class.derive._oncancel._cancelAction (winjs.base.js:1673)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._oncancel._run (winjs.base.js:1089)
    at n.Class.derive._oncancel.cancel (winjs.base.js:979)
    at n.Class.derive._creator._cancelAction (winjs.base.js:1332)
    at Object.enter (winjs.base.js:820)
    at n.Class.derive._creator._run (winjs.base.js:1089)
    at n.Class.derive._creator.cancel (winjs.base.js:979)
    at d.cancelPendingSearch (openAnythingHandler.ts:262)
    at d.getResults (openAnythingHandler.ts:91)
    at quickOpenController.ts:421
    at n.Class.define.cancel.then (winjs.base.js:1587)
    at t.handleDefaultHandler (quickOpenController.ts:395)
    at t.onType (quickOpenController.ts:359)
    at Object.onType (quickOpenController.ts:171)
    at t.onType (quickOpenWidget.ts:458)
    at HTMLInputElement.<anonymous> (quickOpenWidget.ts:231)
console.ts:136 [IPC Library: Search] (node:21644) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
t.log @ console.ts:136
2console.ts:136 [Extension Host] Python Extension: Error in debugger Banner Error: Missing required @injectable annotation in: Random.
	at getTargets (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\reflection_utils.js:20:15)
	at Object.getDependencies (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\reflection_utils.js:11:19)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\planner.js:106:51
	at Array.forEach (<anonymous>)
	at _createSubRequests (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\planner.js:94:20)
	at Object.plan (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\planning\planner.js:129:9)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\container\container.js:316:37
	at Container._get (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\container\container.js:309:44)
	at Container.get (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\node_modules\inversify\lib\container\container.js:228:21)
	at ServiceContainer.get (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\ioc\container.js:28:89)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:163:55)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:14:12)
	at DebuggerBanner.getDebuggerLaunchThresholdCounter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:158:16)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:135:22)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:14:12)
	at DebuggerBanner.passedThreshold (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:133:16)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:72:30)
	at Generator.next (<anonymous>)
	at C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:14:12)
	at DebuggerBanner.shouldShow (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:68:16)
	at DebuggerBanner.<anonymous> (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:188:37)
	at Generator.next (<anonymous>)
	at fulfilled (C:\Users\Joey\.vscode\extensions\ms-python.python-2018.8.0\out\client\debugger\banner.js:15:58)
	at <anonymous>
t.log @ console.ts:136
2console.ts:136 [Extension Host] Failed to get interpreter information for 'python' Error: spawn python ENOENT
	at _errnoException (util.js:1024:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
	at onErrorNT (internal/child_process.js:372:16)
	at _combinedTickCallback (internal/process/next_tick.js:138:11)
	at process._tickCallback (internal/process/next_tick.js:180:9)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
brettcannoncommented, Nov 15, 2018

Considering this a duplicate of #3330 now.

0reactions
joseortiz3commented, Oct 31, 2018

@DonJayamanne Hmm, that’s weird. I don’t see it anymore. Still happens with Visual Studio 2017 however. Code seems to be working now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code does not properly activate anaconda 5.3 -> Cannot ...
VS Code does not properly activate anaconda 5.3 -> Cannot import numpy, DLL ... DLL load failed: The specified module could not be...
Read more >
Running numpy using anaconda and VS Code - Stack Overflow
Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found. I have successfully called the ' ...
Read more >
Troubleshooting ImportError — NumPy v1.24 Manual
The best thing to do if you see this error is to contact the maintainers of the package that is causing problem so...
Read more >
Installation — GeoPandas 0.12.2+0.gefcb367.dirty ...
To install GeoPandas and all its dependencies, we recommend to use the conda package manager. This can be obtained by installing the Anaconda...
Read more >
DLL load failed on Visual Studio Code - Python/Anaconda
The command in VSC "conda activate base" is not recognized. ... ImportError: DLL load failed: The specified module could not be found.
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