After upgrading shell-gpt using pipx upgrade-all, running the sgpt command results in a ModuleNotFoundError for the pkg_resources module. This issue has been encountered on both Fedora and Debian Linux desktops.
Environment
Operating System: Linux (Fedora and Debian)
shell-gpt version: ShellGPT 1.3.0
Steps to Reproduce
Install shell-gpt using pipx
upgrade pipx pipx upgrade-all.
Run the sgpt command.
Expected Behavior
The sgpt command should run without any errors.
Actual Behavior
The following error is encountered:ModuleNotFoundError: No module named 'pkg_resources'
Workaround
The issue was resolved by injecting setuptools into the shell-gpt environment using the following pipx command:
pipx inject shell-gpt setuptools
This just adds the setuptools packages to environment.
Notes
I suspect anyone installing fresh would have the same issue. Pipx has worked for me in the past and I've upgraded each time the same way. If pipx isn't an expected use case feel free to close the case.
Description
After upgrading shell-gpt using
pipx upgrade-all
, running thesgpt
command results in aModuleNotFoundError
for thepkg_resources
module. This issue has been encountered on both Fedora and Debian Linux desktops.Environment
Steps to Reproduce
shell-gpt
usingpipx
pipx upgrade-all
.sgpt
command.Expected Behavior
The
sgpt
command should run without any errors.Actual Behavior
The following error is encountered:ModuleNotFoundError: No module named 'pkg_resources'
Workaround
The issue was resolved by injecting
setuptools
into theshell-gpt
environment using the followingpipx
command: pipx inject shell-gpt setuptools This just adds the setuptools packages to environment.Notes
I suspect anyone installing fresh would have the same issue. Pipx has worked for me in the past and I've upgraded each time the same way. If pipx isn't an expected use case feel free to close the case.