Hi all, especially @rbeucher,
I’m using the pycnv package for reading CTD data and it does not work any longer in the analysis 3-26.XX environments due to a dependence on “pkg_resources package” which has been removed. Is there a way around this? Alternatively, does anyone know another easy-to-use package or has a code for reading seabird CTD files?
Works still fine on the 25.XX-environments, so it’s not super urgent.
pkg_resources has been deprecated/legacy for a really long time, since about 2020ish.
A couple of potential solutions are:
Revert setuptools to version 81 (not necessarily a great idea, because other, more modern packages, will eventually start requiring setuptools>=82.0.0)
Updating the pycnv package. I had a look at it’s code & to be honest, this would probably be pretty easy. With that said, the package is barely maintained, with no updates in ~2 years.
Wait and see what happens with setuptools. If there are legacy environments that are fine for you, then this is also probably fine.
Unfortunately, we can’t conda install pkg_resources into the environment separately - just the way things work in this instance.
The updated & fixed pycnv package is now in analysis3-26.03.
Let me know if you have any issues with it - I offered to give the maintainer some help modernising the package, so if there are any issues with the new version now’s a good time to fix them!