wandb 网络连接问题解决指南--wandb: Network error (SSLError), entering retry loop.

最近开始在windows上使用服务器进行训练了,感觉会遇到各种各样的问题。还是记下来,大家一起进步,一起解决~

今天遇到的问题是这样的:

最近在研究floorplan相关的东西。某作者开源的代码,训练时遇到wandb的问题。总的来说,其实就是网络连接的问题。目前有两种解决方式:

1、科学上网:开启代理服务,在pycharm中设置对应的代理------我的理解是这种方式可以同步信息

把代理网址填进去就好

2、采用离线模式:在wandb.init()之前加入如下代码------我的理解是这种方式不能同步信息

os.environ["WANDB_API_KEY"] = '*******' # 将引号内的*替换成自己在wandb上的key
os.environ["WANDB_MODE"] = "offline"
 

至于key怎么获取,在报错的时候会看到提示,点击就可以了

根据报错时候的提示,我们还可以重新在shell中登录我们的wandb账号,也是根据提示操作就好

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
wandb: Currently logged in as: 470749941. Use `wandb login --relogin` to force relogin wandb: - Waiting for wandb.init()... wandb: \ Waiting for wandb.init()... wandb: Tracking run with wandb version 0.15.5 wandb: Run data is saved locally in /home/zhangmengjie/PID/Python/ERL-Re2-main/wandb/run-20230721_165849-rrlut7sk wandb: Run `wandb offline` to turn off syncing. wandb: Syncing run Steps_200_theta_0.5_eval_1_rs_prob_0.05_frac_p_0.7_our_M_1_0.2_10_5_1.0_64_noise_0.2_Pavn_detach_False_1.0_actorloss_MI_sa_s_0.0_random_K_1_Ant-v4_0.005 wandb: ⭐️ View project at https://wandb.ai/470749941/TSR wandb: 🚀 View run at https://wandb.ai/470749941/TSR/runs/rrlut7sk Error compiling Cython file: ------------------------------------------------------------ ... See c_warning_callback, which is the C wrapper to the user defined function ''' global py_warning_callback global mju_user_warning py_warning_callback = warn mju_user_warning = c_warning_callback ^ ------------------------------------------------------------ /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx:92:23: Cannot assign type 'void (const char *) except * nogil' to 'void (*)(const char *) noexcept nogil' Error compiling Cython file: ------------------------------------------------------------ ... See c_warning_callback, which is the C wrapper to the user defined function ''' global py_error_callback global mju_user_error py_error_callback = err_callback mju_user_error = c_error_callback ^ ------------------------------------------------------------ /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx:127:21: Cannot assign type 'void (const char *) except * nogil' to 'void (*)(const char *) noexcept nogil' Compiling /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx because it changed. [1/1] Cythonizing /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx wandb: Waiting for W&B process to finish... (failed 1). Press Control-C to abort syncing. wandb: Network error (TransientError), entering retry loop. wandb: - 0.000 MB of 0.003 MB uploaded (0.000 MB deduped) wandb: \ 0.000 MB of 0.011 MB uploaded (0.000 MB deduped) wandb: Network error (TransientError), entering retry loop. wandb: | 0.000 MB of 0.011 MB uploaded (0.000 MB deduped) wandb: / 0.000 MB of 0.011 MB uploaded (0.000 MB deduped) wandb: - 0.000 MB of 0.011 MB uploaded (0.000 MB deduped) wandb: \ 0.000 MB of 0.011 MB uploaded (0.000 MB deduped
07-22
wandb: Currently logged in as: 470749941. Use `wandb login --relogin` to force relogin wandb: Tracking run with wandb version 0.15.5 wandb: Run data is saved locally in /home/zhangmengjie/PID/Python/ERL-Re2-main/wandb/run-20230721_165552-b5nwvm2m wandb: Run `wandb offline` to turn off syncing. wandb: Syncing run Steps_200_theta_0.5_eval_1_rs_prob_0.05_frac_p_0.7_our_M_1_0.2_1_5_1.0_64_noise_0.2_Pavn_detach_False_1.0_actorloss_MI_sa_s_0.0_random_K_1_Ant-v2_0.005 wandb: ⭐️ View project at https://wandb.ai/470749941/TSR wandb: 🚀 View run at https://wandb.ai/470749941/TSR/runs/b5nwvm2m /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/gym/envs/registration.py:556: UserWarning: WARN: The environment Ant-v2 is out of date. You should consider upgrading to version `v4`. f"The environment {id} is out of date. You should consider " Error compiling Cython file: ------------------------------------------------------------ ... See c_warning_callback, which is the C wrapper to the user defined function ''' global py_warning_callback global mju_user_warning py_warning_callback = warn mju_user_warning = c_warning_callback ^ ------------------------------------------------------------ /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx:92:23: Cannot assign type 'void (const char *) except * nogil' to 'void (*)(const char *) noexcept nogil' Error compiling Cython file: ------------------------------------------------------------ ... See c_warning_callback, which is the C wrapper to the user defined function ''' global py_error_callback global mju_user_error py_error_callback = err_callback mju_user_error = c_error_callback ^ ------------------------------------------------------------ /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx:127:21: Cannot assign type 'void (const char *) except * nogil' to 'void (*)(const char *) noexcept nogil' Compiling /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx because it changed. [1/1] Cythonizing /home/zhangmengjie/anaconda3/envs/torch1/lib/python3.7/site-packages/mujoco_py/cymj.pyx wandb: Waiting for W&B process to finish... (failed 1). Press Control-C to abort syncing. wandb: Network error (TransientError), entering retry loop. wandb: Network error (TransientError), entering retry loop.
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值