Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Python is not installed (Installed through msys2) #1925

Copy link
Copy link
Closed
@gwenKneeland

Description

@gwenKneeland
Issue body actions

Environment data

  • VS Code version: 1.24.0
  • Extension version (available under the Extensions sidebar): 2018.5.0
  • OS and version: Windows 10 Education
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

When opening vscode a popup appears saying

Python is not installed. Please download and install Python before using the extension.

but after closing the popup the vscode-python extension functions perfectly.

Expected behavior

No popup should appear when opening vscode.

Steps to reproduce:

  1. Install msys2 64-bit
  2. Install python through msys2
pacman -S python3
pacman -S python3-pip
  1. Set "python.pythonPath" in User Settings to the msys2 python path (c:/msys64/usr/bin/python3.exe)
  2. Reload vscode window and install pylint as recommended.
  3. Reload window again and see popup.

Logs

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

Starting the classic analysis engine.
##########Linting Output - pylint##########
No config file found, using default configuration
Unable to create file /home/dkneeland/.pylint.d/:\Documents\Projects\Cog-Tools\SConstruct1.stats: [Errno 2] No such file or directory: '/home/dkneeland/.pylint.d/:\\Documents\\Projects\\Cog-Tools\\SConstruct1.stats'

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

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1311  INFO no standard startup: not a new window
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3454 Overwriting grammar scope name to file mapping for scope source.ruby.
Old grammar file: c:\Program Files\Microsoft VS Code\resources\app\extensions\ruby\syntaxes\ruby.tmLanguage.json.
New grammar file: c:\Users\dkneeland\.vscode\extensions\rebornix.ruby-0.18.0\syntaxes\ruby.cson.json
e.register @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3454
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2265 Python is not installed. Please download and install Python before using the extension.
e.onDidNotificationChange @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2265
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1311   ERR Cannot read property 'isEmpty' of undefined: TypeError: Cannot read property 'isEmpty' of undefined
	at PythonDefinitionProvider.provideDefinition (C:\Users\dkneeland\.vscode\extensions\ms-python.python-2018.5.0\out\client\providers\definitionProvider.js:36:34)
	at PythonDefinitionProvider.descriptor.value (C:\Users\dkneeland\.vscode\extensions\ms-python.python-2018.5.0\out\client\telemetry\index.js:40:43)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:688:955
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:103:887
	at new n.Class.derive._oncancel (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:83:776)
	at Object.t.asWinJsPromise (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:103:850)
	at e.provideDefinition (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:688:909)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:703:10
	at e._withAdapter (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:701:385)
	at e.$provideDefinition (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:702:985)
	at e._doInvokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:636:832)
	at e._invokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:636:550)
	at e._receiveRequest (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:631)
	at e._receiveOneMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:400)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:634:315
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:637:395
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:95:432
	at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:96:764)
	at Socket.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:338)
	at emitOne (events.js:96:13)
	at Socket.emit (events.js:191:7)
	at readableAddChunk (_stream_readable.js:178:18)
	at Socket.Readable.push (_stream_readable.js:136:10)
	at Pipe.onread (net.js:560:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.