Skip to content
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

Error installing package importlib-metadata incompatible. #133

Closed
BerzasProd opened this issue May 8, 2022 · 1 comment · Fixed by #131
Closed

Error installing package importlib-metadata incompatible. #133

BerzasProd opened this issue May 8, 2022 · 1 comment · Fixed by #131
Labels
question Further information is requested

Comments

@BerzasProd
Copy link

Hello,
On Command Prompt if I run 1:
pip install poetry

I get this error

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
burnysc2 5.0.15 requires importlib-metadata<=2.1.0, but you have importlib-metadata 4.11.3 which is incompatible.

If I run 2:
pip install --upgrade --force-reinstall https://github.com/BurnySc2/python-sc2/archive/develop.zip

I get this error

_ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
keyring 23.5.0 requires importlib-metadata>=3.6, but you have importlib-metadata 2.1.0 which is incompatibl_e.

So is my importlib-metadata too new or too old?
I tried updating it using Anaconda and it seems I have the newest version now. Or perhaps the issue is somewhere else?

Please help, thank you for your answers!

@BurnySc2
Copy link
Owner

BurnySc2 commented May 9, 2022

This is where virtual environments come in handy.
You could pip uninstall burnysc2 then pip install poetry
Afterwards, in your bot folder, you can initialize your environment

poetry init # press enter a bunch of times
poetry add burnysc2 # add the library to the project
poetry run python your_bot.py # launch your bot in the virtual environment

Pycharm should support poetry natively, not sure about VScode.

That being said, I'm working on some improvements and have updated importlib-metadata there
#131
It might take a bit more before I merge it though.

@BurnySc2 BurnySc2 added the question Further information is requested label May 9, 2022
@BurnySc2 BurnySc2 linked a pull request May 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants