plugget / plugget-unreal-plugin

unreal plugin to search & install plugget packages
2 stars 0 forks source link

pip dependencies not updating #21

Open hannesdelbeke opened 1 week ago

hannesdelbeke commented 1 week ago

i have plugget qt plugget package installed in unreal when in force a reinstall, the pip dependency plugget qt doesn't update this results in the UI still being outdated

my plugget qt module lives in

D:\\Program Files\\Epic Games\\UE_5.4\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\Lib\\site-packages\\plugget_qt\\__init__.py
hannesdelbeke commented 1 week ago

error when i try manually upgrade, likely cause i have unreal open with plugget qt active.

C:\Users\H>pip install plugget-qt --target "D:\Program Files\Epic Games\UE_5.4\Engine\Binaries\ThirdParty\Python3\Win64\Lib\site-packages" --upgrade

Collecting plugget-qt
  Obtaining dependency information for plugget-qt from https://files.pythonhosted.org/packages/1e/12/1b1effba4d8ad97aa5bfc5e16a6fe3708d75453c35c8bda119220b200822/plugget_qt-0.0.8-py3-none-any.whl.metadata
  Using cached plugget_qt-0.0.8-py3-none-any.whl.metadata (2.5 kB)
Collecting plugget (from plugget-qt)
  Obtaining dependency information for plugget from https://files.pythonhosted.org/packages/58/a9/a38ec24f1bae96449aa330db420e66cb4238ffda65f9b38ae5f2329f50ee/plugget-0.1.15-py3-none-any.whl.metadata
  Using cached plugget-0.1.15-py3-none-any.whl.metadata (4.2 kB)
Collecting detect-app (from plugget->plugget-qt)
  Obtaining dependency information for detect-app from https://files.pythonhosted.org/packages/25/59/7c5024fc4eb4ab9595a422b8e26164b87cc9fbe637710f4f5d903123d85a/detect_app-0.0.4-py3-none-any.whl.metadata
  Using cached detect_app-0.0.4-py3-none-any.whl.metadata (1.5 kB)
Collecting py-pip (from plugget->plugget-qt)
  Obtaining dependency information for py-pip from https://files.pythonhosted.org/packages/be/03/510be3a48c837e467e50db1276074cc42c5d70e022c74197cc6931fdbcba/py_pip-0.0.12-py3-none-any.whl.metadata
  Using cached py_pip-0.0.12-py3-none-any.whl.metadata (3.3 kB)
Collecting requests (from plugget->plugget-qt)
  Obtaining dependency information for requests from https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl.metadata
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting charset-normalizer<4,>=2 (from requests->plugget->plugget-qt)
  Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/57/ec/80c8d48ac8b1741d5b963797b7c0c869335619e13d4744ca2f67fc11c6fc/charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata
  Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests->plugget->plugget-qt)
  Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl.metadata
  Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->plugget->plugget-qt)
  Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl.metadata
  Using cached urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->plugget->plugget-qt)
  Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/12/90/3c9ff0512038035f59d279fddeb79f5f1eccd8859f06d6163c58798b9487/certifi-2024.8.30-py3-none-any.whl.metadata
  Using cached certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Using cached plugget_qt-0.0.8-py3-none-any.whl (9.6 kB)
Using cached plugget-0.1.15-py3-none-any.whl (49 kB)
Using cached detect_app-0.0.4-py3-none-any.whl (7.9 kB)
Using cached py_pip-0.0.12-py3-none-any.whl (5.6 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Installing collected packages: urllib3, py-pip, idna, detect-app, charset-normalizer, certifi, requests, plugget, plugget-qt
Successfully installed certifi-2024.8.30 charset-normalizer-3.3.2 detect-app-0.0.4 idna-3.10 plugget-0.1.15 plugget-qt-0.0.8 py-pip-0.0.12 requests-2.32.3 urllib3-2.2.3

ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\commands\install.py", line 510, in run
    self._handle_target_dir(
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\commands\install.py", line 565, in _handle_target_dir
    shutil.rmtree(target_item_dir)
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 759, in rmtree
    return _rmtree_unsafe(path, onerror)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 622, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Users\H\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 620, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'D:\\Program Files\\Epic Games\\UE_5.4\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\Lib\\site-packages\\charset_normalizer\\md.cp311-win_amd64.pyd'