-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package_version function errors for Jishaku #172
Comments
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: