vscode-odoo-scaffold icon indicating copy to clipboard operation
vscode-odoo-scaffold copied to clipboard

error setting pythonVirtualEnv parameter

Open janderbenitez opened this issue 3 years ago • 3 comments

Hi everyone. Im struggling setting up this extension. Well im on Windows using VS Code connected to Linux Development Server throw SSH

image

So As you can see in the screenshot python extension show python global environment wich is /bin/python3 But when i put this in parameter still have error

pythonVirtualEnv not set in settings. Please add it

Anyone can help me? Thanks in advance

janderbenitez avatar Jun 06 '22 22:06 janderbenitez

@janderbenitez the virtualenv path must be absolute path (in Windows you need to use Windows path forma 'C:/path .., I guess). I use this extension in a local virtualenv and work.

mstuttgart avatar Jun 08 '22 11:06 mstuttgart

@janderbenitez the virtualenv path must be absolute path (in Windows you need to use Windows path forma 'C:/path .., I guess). I use this extension in a local virtualenv and work.

Hi mstuttgart thanks for reply. Well im on windows but server is linux. Remember wich i connect throw SSH to Ubuntu Server 22.04 there is the app dont use docker is on premise.

If i surf to /bin i could find python folders wich i set in extension api but i doesnt work each one

image

janderbenitez avatar Jun 08 '22 12:06 janderbenitez

@janderbenitez sorry, my mistake. I set virtualenv in vscode and set the pythonPath as:

/home/michell/odoo/.venv/bin/python

I need to test using pyhon exec in /bin folder.

mstuttgart avatar Jun 10 '22 14:06 mstuttgart