ImportError: cannot import name 'hf_bucket_url' in HuggingFace Transformers
So I installed the latest version of transformers on Google Colab
!pip install transformers 

When trying to invoke the conversion file using
!python /usr/local/lib/python3.6/dist-packages/transformers/convert_pytorch_checkpoint_to_tf2.py .py --help  

Or trying to use
from transformers.file_utils import hf_bucket_url.                                 // works 
from transformers.convert_pytorch_checkpoint_to_tf2 import *.                      // fails

convert_pytorch_checkpoint_to_tf(&quot;gpt2&quot;, pytorch_file, config_file, tf_file).      

I get this error
 ImportError                               Traceback (most recent call last)

&lt;ipython-input-3-dadaf83ecea0&gt; in &lt;module&gt;()
      1 from transformers.file_utils import hf_bucket_url
----&gt; 2 from transformers.convert_pytorch_checkpoint_to_tf2 import *
      3 
      4 convert_pytorch_checkpoint_to_tf(&quot;gpt2&quot;, pytorch_file, config_file, tf_file)
/usr/local/lib/python3.6/dist-packages/transformers/convert_pytorch_checkpoint_to_tf2.py in &lt;module&gt;()
     20 import os
     21 
---&gt; 22 from transformers import (
     23     ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP,
     24     BERT_PRETRAINED_CONFIG_ARCHIVE_MAP,

ImportError: cannot import name 'hf_bucket_url'

What's going on?

It turns out to be a bug. This PR solves the issue by importing the function hf_bucket_url properly.
