You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My jsk command keeps erroring when I run the root command, and it seems to be a problem with the package_version function used to determine Jishaku's version as well as discord.py's version
Reproduction steps
Run the jsk root command
OR
Import package_version from jishaku.modules and call it, passing "jishaku" as the first argument
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.
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 commandOR
package_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
The text was updated successfully, but these errors were encountered: