ImportError: cannot import name _remove_dead_weakref

After upgrading from debian stretch to buster, celery stopped to work with the error message above. In the indico venv pip also prints the same error. What is the safest form to reinstall python in the venv?

Thanks,
Jozsef

Recreate the virtualenv and reinstall the indico package:

rm -rf ~/.venv
virtualenv ~/.venv
source ~/.venv/bin/activate
pip install -U pip setuptools
pip install indico

In case you weren’t using the latest indico version before, check the upgrade guide as well.

Thanks, it worked perfectly fine!