Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Python virtual environment

Open codecraker opened this issue 8 months ago • 4 comments

Before opening, please confirm:

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

codecraker avatar Apr 01 '26 11:04 codecraker

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! 🚀

github-actions[bot] avatar Apr 01 '26 11:04 github-actions[bot]

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!

AnilMaktala avatar Jun 22 '26 14:06 AnilMaktala

kiro-cli 1.28.2

pisigmac avatar Jun 26 '26 17:06 pisigmac

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?

arodri92 avatar Aug 24 '26 11:08 arodri92