UserWarning: pkg_resources is deprecated

Hi @lizhehret

I am getting the same message during demux:

“/opt/anaconda3/envs/qiime2-amplicon-2025.7/lib/python3.10/site-packages/q2_demux/_summarize/_visualizer.py:11: UserWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation . The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.”

It completes the demux and I get my demuz.qza. It also happens when I run dada2. I am not sure what it means when it says that the package_resources is slated for removal at the end of november, It also appears when I ran qiime2 in galaxy. Again the process completes and I get the outputs.

Please advise

Thank you

Fernando

Hello Fernando,

The short answer: This is a warning and not an error, so you can safely ignore it and continue with your analysis!

Longer answer: Python differentiate warnings :warning: from errors :stop_sign:

Warnings are helpful messages to alert us to possible problems. In this case, the pkg_resources packages has been replace and the Qiime2 devs need to remove it. In this case, you don't have to do anything, other than update to the new version of Qiime2 once it comes out.

Errors mean that something has gone wrong and must be fixed.

@colinbrislawn thank you

Fernando

Hey @nietof,

Just to add on to what @colinbrislawn shared - we have removed these calls to pkg_resources in this development cycle and you'll see these changes reflected in the 2025.10 release (so you won't see these warnings when you update your version of QIIME 2).

Cheers :lizard:

2 Likes

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.