vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Setting Python Path on Win 10

Open alperyazar opened this issue 4 years ago • 15 comments

Hi there,

Thanks for this fantastic plugin. I am experimenting with it on Win 10. I can't use Dependencies Viewer because it can't find Python. I have installed Python 3.9.2 and it's on the path, i.e. I can run python on cmd or PowerShell. I also tried to manually enter the path in extension settings but i didn't work. If I have to enter the path manually, how should I enter the python path, C:\Python\python.exe or C:\\Python\\python.exe (with escaping), etc.?

Thank you.

alperyazar avatar Mar 25 '21 07:03 alperyazar

My mistake, C:\\Python\\python.exe works. I had typo in the settings and noticed after opening the issue. It still doesn't work even python is in the path and explicit set is required but double \ does the trick.

The issue can be closed if it is OK for developers.

alperyazar avatar Mar 25 '21 08:03 alperyazar

@alperyazar Thanks for the feedback and thanks for the workaround! I left the issue open because the "trick" shouldn't be necessary. It happens in windows only.

smgl9 avatar Mar 25 '21 08:03 smgl9

@smgl9 I agree, thank you!

alperyazar avatar Mar 25 '21 09:03 alperyazar

hi , i have the same problem with windows10, my version is 0.1.4 the rule is double quote + python.exe at the end of the string ?

monk31 avatar Jun 08 '21 13:06 monk31

hi , i have the same problem with windows10, my version is 0.1.4 the rule is double quote + python.exe at the end of the string ?

Hi, Sorry for the late response. I don't have access to the machine right now but as far as I remember, yes, like C:\\Python\\python.exe

alperyazar avatar Jul 20 '21 20:07 alperyazar

I also encountered the same problem. The python setting is invalid under win10.

Hqf2013 avatar Aug 01 '21 03:08 Hqf2013

We are working in the new version to fix the Windows issues.

qarlosalberto avatar Aug 01 '21 06:08 qarlosalberto

hi I have the same issue under win10, double / does not work.

ziyangd avatar Dec 20 '21 09:12 ziyangd

Have you triend double \ ?

qarlosalberto avatar Dec 20 '21 09:12 qarlosalberto

yes I tried double \ and python is in my path. So where could be the problem?
teroshdl python

ziyangd avatar Dec 21 '21 06:12 ziyangd

Same problem here, i have python in my path and i have installed everything, but this is what i get rgrg

mlogelect avatar Feb 13 '22 10:02 mlogelect

@mlogelect open from cmd the python console. Type "import vunit", does it work?

qarlosalberto avatar Feb 13 '22 12:02 qarlosalberto

Other option: pen from cmd the python console. Type help("modules"), can you see "VUnit"? Sometimes Windows install the package in different Python3 paths. Make sure that you are using the correct Python3 path.

qarlosalberto avatar Feb 13 '22 12:02 qarlosalberto

I tried and couldn't see the vunit. So i re-installed python3 and searched the path in command line again. This time it shows me a different path than before. Now everything works, thank you!

mlogelect avatar Feb 13 '22 14:02 mlogelect

Cool! I don't use Windows, so it's more difficult for me test it...

qarlosalberto avatar Feb 13 '22 17:02 qarlosalberto