Python virtual environment
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
Ubuntu
Kiro Version
Latest
Bug Description
I am trying to implement product which involves multiple python packages. As kiro is trying to execute commands for testing and validation of python files. It is running python file.py.
I have asked kiro to create python environ and use it. It is created the environment. It also mentioned that, kiro doesn't activate the Python environment. I went ahead and activated the Python environment. But , always kiro opens new shell and running commands.
Steps to Reproduce
am trying to implement product which involves multiple python packages. As kiro is trying to execute commands for testing and validation of python files. It is running python file.py.
I have asked kiro to create python environ and use it. It is created the environment. It also mentioned that, kiro doesn't activate the Python environment. I went ahead and activated the Python environment. But , always kiro opens new shell and running commands.
Expected Behavior
It should run the commands with python about.py once the user activated. The context should remember about python environment and execute
Conversation ID
No response
Additional Context
No response
Thanks for opening this issue! 🙏 We understand how frustrating it can be when Kiro opens a new shell for each command and doesn't retain the activated Python virtual environment context — that's a valid workflow concern. A maintainer will take a look at this soon. We appreciate you taking the time to describe the steps so clearly, and your feedback helps make Kiro better for everyone! 🚀
Thanks for the report! This was filed against an older version of Kiro. Kiro IDE has since shipped 1.0.0 GA and the CLI is now on 2.8.x, with substantial changes to terminal/shell handling since this was opened.
Could you update to the latest version and let us know if this is still reproducible? If so, please share:
- Your current Kiro version (Help → About, or
kiro-cli --version) - Steps to reproduce
- A conversation ID if applicable
If we don't hear back within 7 days, we'll assume it's resolved and close this out. Thanks!
kiro-cli 1.28.2
I had also a problem with this issue. I imported a venv already set-up in VSC and selected the correct interpreter. However, Kiro didn't automatically launched the venv and I had to execute the batch file, any advances on this?