Try to cut your example down to the smallest self-contained example that
we can run, without needing access to your data files. Normally I would
expect an example to need no more than half a dozen lines of code,
although of course that can vary.
Don’t forget to copy and paste the full traceback of the exceptions that
you get, not just the final error message.