agentmorris / MegaDetector

MegaDetector is an AI model that helps conservation folks spend less time doing boring things with camera trap images.
MIT License
117 stars 26 forks source link

ImportError undefined symbol: iJIT_NotifyEvent when MKL 2024.1 is installed #127

Closed davidwhealey closed 6 months ago

davidwhealey commented 6 months ago

When using environment-detector.yml to install the cameratraps-detector environment, importing pytorch from within that environment raises an undefined symbol: iJIT_NotifyEvent error. Pytorch may fix this at some point, but in the meantime pinning mkl to version <= 2024.0 works.

Addressed in this issue.

agentmorris commented 6 months ago

Good catch! I was able to reproduce this issue (which I had missed because I had cached mkl versions on every machine I work on). All the package versions in that environment file are pinned to minimize issues just like this, but one of those packages must be taking a dependency on an unpinned version of mkl.

I verified that forcing mkl=2024.0 in the environment file fixes this. If you get a chance, please verify, but I'm sufficiently confident that I'm closing the issue.

This is going to come up for a zillion projects; MegaDetector is the least of PyTorch's concerns here. :)

Thanks for finding this!