The solution is given by @musicamente in the comments: Drop the pip install qtodotxt and replace it with a clone of the github repository.
pip install qtodotxt