multiformats / multicodec

Compact self-describing codecs. Save space by using predefined multicodec tables.
MIT License
341 stars 205 forks source link

DeprecationWarning: open_text is deprecated #336

Closed drernie closed 1 year ago

drernie commented 1 year ago

I recently started getting a warning, that I think is from here:

======================================================== warnings summary ========================================================
../../../Library/Caches/pypoetry/virtualenvs/quiltcore-PmQ4VOT8-py3.11/lib/python3.11/site-packages/multiformats_config/multicodec.py:80
  /Users/quilt/Library/Caches/pypoetry/virtualenvs/quiltcore-PmQ4VOT8-py3.11/lib/python3.11/site-packages/multiformats_config/multicodec.py:80: DeprecationWarning: open_text is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
    with importlib_resources.open_text("multiformats_config", "multicodec-table.json", encoding="utf8") as _table_f:

Anyone else seeing this?

rvagg commented 1 year ago

no, not here unfortunately so we can't help directly, but it appears to be coming from the Python implementation, which I believe is the one here: https://github.com/hashberg-io/multiformats-config