Skip to content

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

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

Closed
joseortiz3 opened this issue Oct 28, 2018 · 7 comments
Assignees
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@joseortiz3
Copy link

joseortiz3 commented Oct 28, 2018

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 ContinuumIO/anaconda-issues#10257 (comment) this is the new normal. This is also an issue in VS 2017's PTVS: microsoft/PTVS#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)
@joseortiz3 joseortiz3 changed the title VS Code does not properly activate anaconda -> Cannot import numpy, DLL not found VS Code does not properly activate anaconda 5.3 -> Cannot import numpy, DLL not found Oct 28, 2018
@DonJayamanne
Copy link

DonJayamanne commented Oct 28, 2018

You aren't using the latest version of the Extension.
Looking at your temrinal output, its obvious you have the wrong version installed, you seem to have 2018.8.0.

screen shot 2018-10-27 at 10 46 52 pm

The latest version of the extension will automatically activate the conda environment.
Please update to the latest version.
If the problem persists, then please reopen this issue.

@joseortiz3
Copy link
Author

joseortiz3 commented Oct 28, 2018

@DonJayamanne I cannot reopen the issue because you closed the issue. I have verified this problem on Versions 2018.8.0, 2019.9.1, and the current insiders build 2018.10.0-alpha.

Reopen the issue and test it yourself. People are slow to update to Anaconda 5.3, so you guys have a little time to fix this before it becomes a big headache.

Although updating my VS code did make the console log much smaller:

log.ts:159  INFO no standard startup: not a new window
console.ts:136 [IPC Library: File Watcher (nsfw)] (node:14192) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added. Use emitter.setMaxListeners() to increase limit

@mingwandroid
Copy link

mingwandroid commented Oct 28, 2018

People are slow to update to Anaconda 5.

I don't think that's the case. You should regularly issue conda update --all. Fundamentally Anaconda Distribution is a rolling distro and people who do not update regularly are really taking silly risks with computer security.

@DonJayamanne
Copy link

@joseortiz3

@DonJayamanne I cannot reopen the issue because you closed the issue. I have verified this problem on Versions 2018.8.0, 2019.9.1, and the current insiders build 2018.10.0-alpha.

Please could you upload screenshots of the errors and other logs.

@DonJayamanne DonJayamanne reopened this Oct 28, 2018
@DonJayamanne DonJayamanne self-assigned this Oct 28, 2018
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster area-terminal triage labels Oct 28, 2018
@DonJayamanne
Copy link

@joseortiz3
I had tested this at our end and was and still am unable to replicate this.

Please try this again with the latest version and provide screen shots and the necessary logs.

@joseortiz3
Copy link
Author

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

@brettcannon
Copy link
Member

Considering this a duplicate of #3330 now.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants