The problem is a research from another mod. It doesn't have all the required science packages as a condition. Is it otherwise possible to check whether the science packages that a research needs are already available and, if not, to research the corresponding science packages first?
And btw, I basically have no idea about Lua. I only know the basics of Factorio modding..
Sorry, I'm sure there is a better way to find out if a research can actually be researched, but I'm not aware of how to do that. This mod just hardcodes in the missing dependencies for the vanilla research items, so other mods might not work with this if they don't define all of those dependencies.
I have another question. I've temporarily deactivated your mod. Is there a way to open the technology tree again? Because for some reason it is still disabled.
Yes, this is possible, you need to run the following console commands to remove, or add, the player to the permission group (no need to disable the mod when running these)
/c game.permissions.get_group('no-research-changes').remove_player(1)
/c game.permissions.get_group('no-research-changes').add_player(1)