iT邦幫忙

0

M1晶片的MacBook Pro在使用Jupyter Notebook時無法更改檔案名稱

  • 分享至 

  • xImage

M1晶片的MacBook Pro之前在使用Jupyter Notebook時都能正常更改檔案名稱,但是今天要更改新的檔案名稱時卻發現不能更改了!

以下是更改檔案名稱時出現的錯誤代碼:
Traceback (most recent call last): File "/Users/hotsungkai/miniforge3/envs/DL/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute result = await result File "/Users/hotsungkai/miniforge3/envs/DL/lib/python3.9/site-packages/tornado/gen.py", line 234, in wrapper yielded = ctx_run(next, result) File "/Users/hotsungkai/miniforge3/envs/DL/lib/python3.9/site-packages/notebook/services/contents/handlers.py", line 135, in patch model = yield maybe_future(cm.update(model, path)) File "/Users/hotsungkai/miniforge3/envs/DL/lib/python3.9/site-packages/notebook/services/contents/manager.py", line 296, in update self.rename(path, new_path) File "/Users/hotsungkai/miniforge3/envs/DL/lib/python3.9/site-packages/notebook/services/contents/manager.py", line 284, in rename self.rename_file(old_path, new_path) File "/Users/hotsungkai/miniforge3/envs/DL/lib/python3.9/site-packages/notebook/services/contents/filemanager.py", line 579, in rename_file raise web.HTTPError(400, f'Cannot rename file or directory {os_path!r}') NameError: name 'os_path' is not defined

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答