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.

AREPL does not use folder-level settings

See original GitHub issue

I’m running vscode on Linux (Ubuntu bionic) and when I installed AREPL extension, it gives this error:

Error in the AREPL extension!
Error running python with command: C:\Python38-32\python.exe -u /home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/node_modules/arepl-backend/python/python_evaluator.py
Error: spawn C:\Python38-32\python.exe ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
	at onErrorNT (internal/child_process.js:456:16)
	at processTicksAndRejections (internal/process/task_queues.js:84:9)

Are you sure you have installed python 3 and it is in your PATH?
            You can download python here: https://www.python.org/downloads/

it seems as if it searched windows path for python instead of the linux one My python is under: /usr/bin/python3

Log from vscode:

[2020-02-10 12:52:14.348] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/extension
[2020-02-10 12:52:14.806] [exthost] [info] eager extensions activated
[2020-02-10 12:52:15.961] [exthost] [error] Activating extension almenon.arepl failed due to an error:
[2020-02-10 12:52:15.962] [exthost] [error] Error: Command failed: "C:\Python38-32\python.exe" -m site --user-site
/bin/sh: 1: C:\Python38-32\python.exe: not found

	at checkExecSyncError (child_process.js:629:11)
	at Object.execSync (child_process.js:665:15)
	at Object.<anonymous> (electron/js2c/asar.js:744:23)
	at Object.execSync (electron/js2c/asar.js:744:23)
	at getsitePackagePath (/home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/registerAreplDump.js:31:28)
	at Object.registerAreplDump (/home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/registerAreplDump.js:11:29)
	at activate (/home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/extension.js:49:25)
	at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:710:141)
	at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:709:810)
	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:708:960
	at async Promise.all (index 0)

I should mention that I’m dual booting Windows and Ubuntu, if that is important.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Almenoncommented, Apr 4, 2020

@koumakpet @sephross version 1.0.23 of arepl should now correctly use currently configured interpreter for python extension if arepl.pythonPath is not set - once you update can you test if it is working please?

1reaction
ItsDrikecommented, Feb 11, 2020

Well in vscode there are basically 3 files for settings: default settings, global user settings and project specific settings (for every workspace, there can be .vscode directory in which there is file settings.json). In my global user settings I had the wrong path set, but in project specific settings, I had python path set to /usr/bin/python3, which is the correct path, but AREPL seems to take the path from global user settings and ignore the project secific settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

automatically use right python version · Issue #299 - GitHub
AREPL takes the python extension python path setting. The problem is the user might only define that setting for a specific folder/workspace ...
Read more >
AREPL and console showing different working directories ...
The reason is that the precise locations of the startup paths displayed by default on the two terminals are different.
Read more >
AREPL for python - Visual Studio Marketplace
AREPL is availible for free on the vscode marketplace. ... Customize the look and feel, debounce time, python options, and more!
Read more >
arepl/Lobby - Gitter
Hi, installed ur extension but doesn't seem to work, I get this error ... want to change the python interpreter you can change...
Read more >
Setting Python source folders in Visual Studio Code - Binx
Visual Studio Code is my preferred editor. Unfortunately, it doesn't work with additional Python source folders out of the box.
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