I am getting this error when running some integration tests, at the point where I call
context_from_entity . I checked that there isn’t a .pyc file, and there is exactly one class deriving from Hook (haven’t changed anything in there). I see that this hook is marked as deprecated.
The same happens on Windows and Linux.
Strangely, this only happens when I run these tests with others; when I run them individually, they pass.
E tank.util.loader.TankLoadPluginError: Error loading the file '/projects/shotgun_config/btltest3/install/core/hooks/context_additional_entities.py'. Couldn't find a single class deriving from 'Hook'. You need to have exactly one class defined in the file deriving from that base class. If your file looks fine, it is possible that the cached .pyc file that python generates is invalid and this is causing the error. In that case, please delete the .pyc file and try again.