kit icon indicating copy to clipboard operation
kit copied to clipboard

Python venv issue in kit $ command

Open mizagog opened this issue 2 years ago • 3 comments

Hi, I'm having troubles running python with the $ command or exec command on mac, running into issue with python modules not working. running the same commands in Terminal / Webstorm works, but when running it with kit, i get the error. image

mizagog avatar Jul 17 '23 06:07 mizagog

@mizagog the $ is an alias for the "zx" package here:

https://github.com/google/zx

Please check their docs for changing working directories, adding directories to the PATH.

When something is "missing", 99% of the time it's a PATH issue

johnlindquist avatar Jul 22 '23 14:07 johnlindquist

I'll have a look

mizagog avatar Jul 22 '23 14:07 mizagog

Couldn't make it work. Python in $ is running with other ENV variables, and for standard shell it's enough to run from the python executable located in the VENV folder to get to the correct pip and modules....

// await exec('cd /Users/****/PycharmProjects/pythonProject/ && ./venv/bin/python ./my-script.py test')

mizagog avatar Jul 23 '23 10:07 mizagog