Skip to content

[Bug]: Environment mismatch between OpenHands and VSCode #8590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
openhands-agent opened this issue May 20, 2025 · 1 comment
Open

[Bug]: Environment mismatch between OpenHands and VSCode #8590

openhands-agent opened this issue May 20, 2025 · 1 comment
Labels
bug Something isn't working VS code tab Related to the VS Code tab

Comments

@openhands-agent
Copy link
Contributor

Describe the bug and reproduction steps
There is a discrepancy in the environment between OpenHands and VSCode. For example, when asking OpenHands to run pre-commit, it is found. However, running pre-commit in the VSCode environment results in a command not found error. Additionally, the Python interpreter used by OpenHands (/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python) differs from the one used by VSCode (/usr/local/bin/python).

Potential solutions
Fix the behavior so that the environments match appropriately between OpenHands and VSCode.

Logs, Errors, Screenshots, and Additional Context

  • Reproduction Error:
root@runtime-delrpnzygetjfctk-5b787899c8-gjqc6:/workspace# pre-commit
bash: pre-commit: command not found
  • Python paths:
    In OpenHands: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python
    In VSCode: /usr/local/bin/python

Additional references were discussed about modifying the setup script, located at:

Issue Created By: Graham Neubig on Slack
Link to Slack Thread: https://openhands-ai.slack.com/archives/C06U8UTKSAD/p1747714970226839?thread_ts=1747714970.226839&cid=C06U8UTKSAD

@kentyman23
Copy link

Furthermore, OH's environment seems to have poetry but hasn't run poetry install:

Image

@mamoodi mamoodi added bug Something isn't working VS code tab Related to the VS Code tab labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VS code tab Related to the VS Code tab
Projects
None yet
Development

No branches or pull requests

3 participants