TerosTechnology / vscode-terosHDL

VHDL and Verilog/SV IDE: state machine viewer, linter, documentation, snippets... and more!
https://terostechnology.github.io/terosHDLdoc/
GNU General Public License v3.0
562 stars 45 forks source link

Setting Python Path on Win 10 #91

Open alperyazar opened 3 years ago

alperyazar commented 3 years ago

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 commented 3 years ago

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.

smgl9 commented 3 years ago

@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.

alperyazar commented 3 years ago

@smgl9 I agree, thank you!

monk31 commented 3 years ago

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 ?

alperyazar commented 3 years ago

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

Hqf2013 commented 3 years ago

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

qarlosalberto commented 3 years ago

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

ziyangd commented 2 years ago

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

qarlosalberto commented 2 years ago

Have you triend double \ ?

ziyangd commented 2 years ago

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

mlogelect commented 2 years ago

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

qarlosalberto commented 2 years ago

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

qarlosalberto commented 2 years ago

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.

mlogelect commented 2 years ago

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!

qarlosalberto commented 2 years ago

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