IT

hot to fix poetry self update error

bepuri 2022. 12. 16. 11:30
728x90
Updating to 1.3.1
Traceback (most recent call last):
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\clikit\console_application.py", line 131, in run
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\clikit\api\command\command.py", line 120, in handle
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\clikit\api\command\command.py", line 171, in _do_handle
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\cleo\commands\command.py", line 92, in wrap_handle
  File "C:\Users\Administrator\.poetry\lib\poetry\console\commands\self\update.py", line 197, in handle
  File "C:\Users\Administrator\.poetry\lib\poetry\console\commands\self\update.py", line 209, in update
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 759, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 624, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 624, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 624, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  [Previous line repeated 1 more time]
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 629, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 627, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] 액세스가 거부되었습니다: 'C:\\Users\\Administrator\\.poetry\\lib\\poetry\\_vendor\\py3.9\\msgpack\\_cmsgpack.cp39-win_amd64.pyd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\.poetry\bin\poetry", line 19, in <module>
    main()
  File "C:\Users\Administrator\.poetry\lib\poetry\console\__init__.py", line 5, in main
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\clikit\console_application.py", line 142, in run
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\clikit\ui\components\exception_trace.py", line 232, in render
  File "C:\Users\Administrator\.poetry\lib\poetry\_vendor\py3.9\clikit\ui\components\exception_trace.py", line 251, in _render_exception

I got those errors.

I leave solution that fixes that problem.

 

1. Uninstall poetry

2. Install new version of poetry.

3. If you have path problem, add new poetry path to PATH

728x90