Score:3

Deprecation warnings python3.8 packages

us flag

I am running Ubuntu 20.04 in WSLg under a Windows 11 insider build (build 22523). When I do certain Python-related things, I keep getting these two warnings:

/home/eafpres/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/home/eafpres/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(

For example, I just did: pip install plotly

and got these, but the install worked fine. Similarly, I get them when I start my IDE (Spyder).

Is there something wrong with my Ubuntu install?

user535733 avatar
cn flag
Anything in `/home/$USER/.local/` was installed by you manually (apt and snap packages won't install there) and has nothing to do with the functioning of your Ubuntu install. Whatever the problem is, it's not an Ubuntu *system* problem. It's a problem with the version of Python that you manually installed.
us flag
Thanks. I can see that is probably set up by pip, and somewhere installing packages it caused this issue. I haven't been able to find the specific package yet, but this helps.
vn flag
Does this answer your question? [What is the meaning of this PkgResourcesDeprecationWarning warning from pipenv --version?](https://askubuntu.com/questions/1406952/what-is-the-meaning-of-this-pkgresourcesdeprecationwarning-warning-from-pipenv)
Score:0
ph flag

You are not doing anything wrong. These warnings are caused by not PEP 440 compliant versions of those Python packages. These Ubuntu package versions need to be fixed: https://launchpad.net/bugs/1991606

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.