Skip to content

shell-gpt: Missing python module requests #400438

@SohamG

Description

@SohamG

Nixpkgs version

Please select a version.

Describe the bug

Hello,

The issue basically is that if at any point you run sgpt --install-functions the sgpt installation will bork itself as the existence of the folder ~/.config/shell_gpt/functions introduces a hard requirement on the requests python module. It actually won't even respond to --help without an error message. The solution for now is to nuke that directory.

I may send a patch to fix this myself in a few days.

propagatedBuildInputs = with python3.pkgs; [

Steps to reproduce

  1. sgpt --install-functions
  2. sgpt --help (will error out)

Expected behaviour

sgpt works as it would have the module its trying to import

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.9-xanmod1, NixOS, 24.11 (Vicuna), 24.11.20250403.bdb9186
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.13
  • nixpkgs: /etc/nix/path/nixpkgs

Notify maintainers

@MGlolenstine

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions