Skip to content

Unable to invoke hatch from within an environment #2320

Description

@waqasilyas

I am very new to Hatch, and getting stumped often by the following error when invoking hatch command:
error: uv trampoline failed to load trampoline kind from resources

Perhaps I am missing something basic in my workflow, but not sure where to ask this question.

I can reproduce this consistently when invoking hatch from within an environment's shell. For example, I tried the below (after deleting pypa, pyapp, pip and hatch directory from C:\Users\waqily\AppData\Local to simulate fresh installation)

Here is my output:

Microsoft Windows [Version 10.0.26100.8655]
(c) Microsoft Corporation. All rights reserved.

C:\Users\waqily>hatch --version
Hatch, version 1.17.0

C:\Users\waqily>hatch env show
Standalone
┏━━━━━━━━━┳━━━━━━━━━┓
┃ Name    ┃ Type    ┃
┡━━━━━━━━━╇━━━━━━━━━┩
│ default │ virtual │
└─────────┴─────────┘

C:\Users\waqily>hatch shell
You are about to enter a new shell, exit as you usually would e.g. by typing `exit` or pressing `ctrl+d`...

(waqily) C:\Users\waqily>hatch --version
error: uv trampoline failed to load trampoline kind from resources

(waqily) C:\Users\waqily>

I see the same behavior when I use my project's environments. I would highly appreciate some guidance as this seriously hinders my ability to work on my project. If this should be asked somewhere else please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions