#🔒 no module named pkg_resources

13 messages · Page 1 of 1 (latest)

astral gull
#

Good morning everyone. I am trying to use the lang2vec library and it is dependend on pkg_resources. Which i think is outdated or something. It doesnt want run anyway. how could i fix this?

little spireBOT
#

@astral gull

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

bronze hemlock
#

pkg_resources was part of setuptools until 81.0. It got deprecated in 82.0 so if you downversion it you should have it available

#

you can do pip install to get it back to 81
pip install setuptools==81.0

split lake
plucky whale
#

Or maybe people should check the library first instead of suggesting a "fix" that is not a real fix?

#

!pypi lang2vec the library was last updated in 2019. Before python2 even went out of life.

little spireBOT
#

A simple library for querying the URIEL typological database.

Released on <t:1553465609:D>.

plucky whale
#

Meaning OP probably shouldn't use it - it's better to find some maintained fork

#

And only try to find setuptools version if there's no alternative

little spireBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.