How to fix "RuntimeError: Missing implementation that supports: loader" when calling hub.text_embedding_column method?

I walked through the same error and this is how I solved it;

My error was:

RuntimeError: Missing implementation that supports: loader(*('C:\\Users\\Alber\\AppData\\Local\\Temp\\tfhub_modules\\a7fe827a4e68369aab0fa6a65479cd37c499e0f4',), **{})

So the problem was with the following path:

C:/Users/Alber/AppData/Local/Temp/tfhub_modules/a7fe827a4e68369aab0fa6a65479cd37c499e0f4

Just with the explorer I checked the path and found that the a7fe827a4e68369aab0fa6a65479cd37c499e0f4 folder was empty. I don't know why but that shouldn't happen.

Then I just deleted the a7fe827a4e68369aab0fa6a65479cd37c499e0f4 folder and even the tf_hub folder (because I didn't have any other thing but I think it's not necessary to remove the tf_hub folder).

After that I run the script and it downloaded again the required modules normally

INFO:tensorflow:Using C:\Users\Alber\AppData\Local\Temp\tfhub_modules to cache modules.
INFO:tensorflow:Downloading TF-Hub Module 'https://tfhub.dev/google/nnlm-es-dim128-with-normalization/1'.
INFO:tensorflow:Downloading https://tfhub.dev/google/nnlm-es-dim128-with-normalization/1: 38.58MB
...

The tensorflow 2 has new method for hub called as KerasLayer (https://www.tensorflow.org/hub). Using that solved my problem.

import tensorflow as tf

import tensorflow_hub as hub

module_url = "https://tfhub.dev/google/nnlm-en-dim128/2"

embed = hub.KerasLayer(module_url)

embeddings = embed(["A long sentence.", "single-word",
                      "http://example.com"])