microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.32k stars 1.19k forks source link

python extention python not found #14229

Closed AbdelrahmanHamdy1996 closed 4 years ago

AbdelrahmanHamdy1996 commented 4 years ago

Issue Type: Bug

every time i open vscode after i restart my machine and open .py file and extension load, and when i run the file this message appear
/bin/sh: 1: python: not found
then i reload vs code window and rerun file the file run probably

Extension version: 2020.9.112786 VS Code version: Code 1.49.2 (e5e9e69aed6e1984f7499b7af85b3d05f9a6883a, 2020-09-24T16:26:09.944Z) OS version: Linux x64 5.4.0-48-generic snap

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1600)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|4, 2, 1| |Memory (System)|7.68GB (0.13GB free)| |Process Argv|--force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id e8cdb1fb-f439-4bff-9ff0-964f3ab2d516| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
karthiknadig commented 4 years ago

Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority.

If you think your issue is more of a question or configuration problem rather than a bug, please ask on Stack Overflow with the visual-studio-code and python labels for help.

Thanks for your understanding and patience!

karthiknadig commented 4 years ago

@AbdelrahmanHamdy1996 Can you share the logs (from the first run and after reload)? You should be able to find the logs in the Output > Python panel image

AbdelrahmanHamdy1996 commented 4 years ago

image image

AbdelrahmanHamdy1996 commented 4 years ago

the first image after i open my laptop i open vscode immediately then I run .py file this message appear, i reload window and run file again then work

karthiknadig commented 4 years ago

Output > Code is for the "Code Runner" extension. Output > Python is for the Python extension. Please share the logs from Output > Python.

AbdelrahmanHamdy1996 commented 4 years ago

I will submit it once it appears again

AbdelrahmanHamdy1996 commented 4 years ago

the error from Code Runner, not form python extension, thanks for your understanding

Ryan-ty-png14 commented 4 years ago

go to your terminal and write the name of the file then run the code

On Mon, Oct 12, 2020 at 12:27 PM Abdelrahman Hamdy notifications@github.com wrote:

the error from Code Runner, not form python extension, thanks for your understanding

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-python/issues/14229#issuecomment-707000699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQSJZL5RWZTTBN7KDV2EHNDSKLDX7ANCNFSM4SB66IWA .