Closed fuh-Q closed 6 days ago
This is not a jishaku bug. I just tested this by spinning up a fresh venv and testing it. What it seems to be is that your package manager (apt maybe) installed an incompatible version of a dependency, and python/pip cannot solve this because the package manager forbids pip from uninstalling packages installed by it. This is why you always use venvs for anything other than non-global cli tools.
pkg_resources related problems are also the cause of #205. Will need to purposefully break one of my environments to reproduce it enough to fix it, but the goal is probably to either move from pkg_resources to importlib_metadata (if possible), or to engineer a solution that does not depend on pip's whims at all.
pkg_resources usage was replaced in #213. I'm going to assume that this fixes this issue. If it occurs again just reopen.
Summary
My
jsk
command keeps erroring when I run the root command, and it seems to be a problem with thepackage_version
function used to determine Jishaku's version as well as discord.py's versionReproduction steps
jsk
root command ORpackage_version
fromjishaku.modules
and call it, passing"jishaku"
as the first argumentExpected results
Return Jishaku's version (in my case 2.5.0)
Actual results
Kept giving me this error in the console
Checklist
System information
Screenshot