Closed ap-- closed 1 year ago
Strange, register_codecs
should not modify the module's globals dict, neither should the numcodecs functions. Anyway, I'll change it to list(globals().items())
.
Is register_codecs
called from different threads or is the imagecodecs-numcodecs
package installed?
imagecodecs-numcodecs
is not installed in the CI and the crash occurred when running pytest.
But I can't reproduce locally and it hasn't occurred since in the CI.
Maybe it was just some single event error on the runner š¤·
Hi @cgohlke,
In a CI run, I just saw a
RuntimeError: dictionary changed size during iteration
inregister_codecs
It only failed on Python3.11 on ubuntu. And rerunning the job could not reproduce the error, so this might be just some artefact.Reporting it just in case it pops up again.
https://github.com/bayer-science-for-a-better-life/tiffslide/actions/runs/4292134595/jobs/7478191925#step:6:257
imagecodecs-2023.1.23 numcodecs-0.11.0
Cheers, Andreas