So the issue was with ResourceManager.open(name)

By using open(ResourceManager.lookup(name)) everything works.

I'm not sure why this is the case, the two should be identical...