streamz icon indicating copy to clipboard operation
streamz copied to clipboard

pkg_resources warning

Open killcoder opened this issue 6 months ago • 4 comments

Using UV to manage python (3.13) & python packages, the following warning is thrown for streamz

.venv\Lib\site-packages\streamz\plugins.py:3: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources

Inspecting the plugins file shows that it's the old version and does contain pkg_resources even though the latest version of streamz is installed

> uv pip list
...
streamz                 0.6.4
...

On two different computer, I've tried clearing the cache "uv cache clean " and deleting the .venv folder but the issue is still present once resync'd "uv sync" so it makes me think that its in the wheel and has nothing to do with uv.

killcoder avatar Jun 23 '25 22:06 killcoder

The last release here was three years ago, so this is not surprising.

We could mark the whole library as "archived", except I believe it might still be useful for some. In any case, it should be safe to ignore the warning.

martindurant avatar Jun 24 '25 17:06 martindurant

Hi @martindurant , I have just written this post on stackoverflow to ask for some advices on possible "simple" equivalent python library. Please, what would be your own advice?

yohplala avatar Jun 24 '25 17:06 yohplala

I don't have an alternative. A simple way to async with complex logic and possibility to offload dataframes and/or dask.... streamz is great, but it just hasn't had much interest ever.

martindurant avatar Jun 24 '25 17:06 martindurant

Thanks for your quick answer. No complaints here. I just come to it now, and yes, it seems great. My workflows may still be simple enough that I can handle them on my own if each task is encapsulated well enough. Thanks again!

yohplala avatar Jun 24 '25 18:06 yohplala