RL tutorial package_to_hub issue
Hi!I’ve gone throught the first part of the tutorial but I can’t seem to get package_to_hub working:package_to_hub(model=model, # Our trained model
               model_name=model_name, # The name of our trained model 
               model_architecture=model_architecture, # The model architecture we used: in our case PPO
               env_id=env_id, # Name of the environment
               eval_env=eval_env, # Evaluation Environment
               repo_id=repo_id, # id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name} for instance ThomasSimonini/ppo-LunarLander-v2
               commit_message="Test to avoid error",)---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-14-c506e4a1707f> in <module>()
     37                eval_env=eval_env, # Evaluation Environment
     38                repo_id=repo_id, # id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name} for instance ThomasSimonini/ppo-LunarLander-v2
---> 39                commit_message="Test to avoid error",)

9 frames
/usr/local/lib/python3.7/dist-packages/pyglet/gl/__init__.py in <module>()
    233 elif compat_platform == 'darwin':
    234     from .cocoa import CocoaConfig as Config
--> 235 del base  # noqa: F821
    236 
    237 

NameError: name 'base' is not defined
2022-12-11T17:43:15Z
Same here, any solution?Thank you.
2023-01-12T15:07:31Z
I got the same issue and restarting the runtime fixed it for me.I think it’s caused due to incompatible OS or missing dependencies on the host machine.