Skip to content

ModuleNotFoundError: No module named 'git' #272

Closed

Description

@tampe125

Hello,

I'm having a trouble with the latest devel branch (commit b2024ad).
Even if I follow the basic steps listed in "How to use it?", no configuration at all, the build fails with the error "ModuleNotFoundError: No module named 'git'".

Now, that feels a bit strange, since I'm 100% I have the module installed. I suspected the wrong Python executable was fired (since I have an Anaconda setup with multiple environments), but I get the same error even after conda deactivate. I put an hard print on sys.executable to get the current executable, which is /usr/bin/python3 .
Running that executable and trying to import git works fine.

Am I doing something wrong? How can it be the module not being found?

Activity

  1. tampe125 commented on Apr 27, 2026

    @tampe125
    Author

    For anyone coming here with the same error, I fixed it in the hard way. I edited the script to first install the git module, then removed the edit so it completes successfully.

    Ugly? Yes. Effective? Hell, yeah.

  2. guysoft commented on Apr 27, 2026

    @guysoft
    Owner

    You could try two things:

    1. which python and which python3. See what fires
    2. The docker build method takes care of that by separating the build env. So you dont get those issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions