MagnumVD / RotoForge-AI

An implementation of SAM-HQ + some other stuff to make rotoscoping in blender fast af
https://ko-fi.com/s/5025cf0a06
Other
38 stars 1 forks source link

Permission Error: Access refused for many torch-related files #11

Open FoxTrotte opened 5 months ago

FoxTrotte commented 5 months ago

Hi ! I've been trying to install Rotoforge on Blender4.1, but I get the following issues when I click install, or when I forceupdate dependencies. No other programs than Blender are open during the installation. It happens no matter if Blender is executes as admin or not. I'm using Windows 10. I also trien in Blender 3.6, with the same results. Here's the log:

Installing collected packages: pip
Successfully installed pip-24.0

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\bin\python.exe -m pip install --upgrade pip
Collecting timm
  Obtaining dependency information for timm from https://files.pythonhosted.org/packages/19/0d/57fe21d3bcba4832ed59bc3bf0f544e8f0011f8ccd6fd85bc8e2a5d42c94/timm-1.0.3-py3-none-any.whl.metadata
  Using cached timm-1.0.3-py3-none-any.whl.metadata (43 kB)
Collecting segment-anything-hq
  Obtaining dependency information for segment-anything-hq from https://files.pythonhosted.org/packages/ea/7a/08e037dc65a78aa6c3b433771cc18207a93f1b0380f0bda298c98cc5d7ea/segment_anything_hq-0.3-py3-none-any.whl.metadata
  Using cached segment_anything_hq-0.3-py3-none-any.whl.metadata (17 kB)
Collecting torch (from timm)
  Obtaining dependency information for torch from https://files.pythonhosted.org/packages/d3/1d/a257913c89572de61316461db91867f87519146e58132cdeace3d9ffbe1f/torch-2.3.1-cp311-cp311-win_amd64.whl.metadata
  Using cached torch-2.3.1-cp311-cp311-win_amd64.whl.metadata (26 kB)
Collecting torchvision (from timm)
  Obtaining dependency information for torchvision from https://files.pythonhosted.org/packages/e4/c3/a21a75dd2de8114a6876f16a36b033e3e62f8ade68085a711b24f4b57c17/torchvision-0.18.1-cp311-cp311-win_amd64.whl.metadata
  Using cached torchvision-0.18.1-cp311-cp311-win_amd64.whl.metadata (6.6 kB)
Collecting pyyaml (from timm)
  Obtaining dependency information for pyyaml from https://files.pythonhosted.org/packages/b3/34/65bb4b2d7908044963ebf614fe0fdb080773fc7030d7e39c8d3eddcd4257/PyYAML-6.0.1-cp311-cp311-win_amd64.whl.metadata
  Using cached PyYAML-6.0.1-cp311-cp311-win_amd64.whl.metadata (2.1 kB)
Collecting huggingface_hub (from timm)
  Obtaining dependency information for huggingface_hub from https://files.pythonhosted.org/packages/66/e8/bbbad5c7b49c68def42830f96c606e693bfa935a886740a363f04cb84e44/huggingface_hub-0.23.3-py3-none-any.whl.metadata
  Using cached huggingface_hub-0.23.3-py3-none-any.whl.metadata (12 kB)
Collecting safetensors (from timm)
  Obtaining dependency information for safetensors from https://files.pythonhosted.org/packages/cb/f6/19f268662be898ff2a23ac06f8dd0d2956b2ecd204c96e1ee07ba292c119/safetensors-0.4.3-cp311-none-win_amd64.whl.metadata
  Using cached safetensors-0.4.3-cp311-none-win_amd64.whl.metadata (3.9 kB)
Collecting filelock (from torch->timm)
  Obtaining dependency information for filelock from https://files.pythonhosted.org/packages/41/24/0b023b6537dfc9bae2c779353998e3e99ac7dfff4222fc6126650e93c3f3/filelock-3.14.0-py3-none-any.whl.metadata
  Using cached filelock-3.14.0-py3-none-any.whl.metadata (2.8 kB)
Collecting typing-extensions>=4.8.0 (from torch->timm)
  Obtaining dependency information for typing-extensions>=4.8.0 from https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl.metadata
  Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting sympy (from torch->timm)
  Obtaining dependency information for sympy from https://files.pythonhosted.org/packages/61/53/e18c8c97d0b2724d85c9830477e3ebea3acf1dcdc6deb344d5d9c93a9946/sympy-1.12.1-py3-none-any.whl.metadata
  Using cached sympy-1.12.1-py3-none-any.whl.metadata (12 kB)
Collecting networkx (from torch->timm)
  Obtaining dependency information for networkx from https://files.pythonhosted.org/packages/38/e9/5f72929373e1a0e8d142a130f3f97e6ff920070f87f91c4e13e40e0fba5a/networkx-3.3-py3-none-any.whl.metadata
  Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB)
Collecting jinja2 (from torch->timm)
  Obtaining dependency information for jinja2 from https://files.pythonhosted.org/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl.metadata
  Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch->timm)
  Obtaining dependency information for fsspec from https://files.pythonhosted.org/packages/8f/df/de2c06b316142063b6ccccc97cdc54185e3af771aa4f056d56f0db0e3466/fsspec-2024.6.0-py3-none-any.whl.metadata
  Using cached fsspec-2024.6.0-py3-none-any.whl.metadata (11 kB)
Collecting mkl<=2021.4.0,>=2021.1.1 (from torch->timm)
  Obtaining dependency information for mkl<=2021.4.0,>=2021.1.1 from https://files.pythonhosted.org/packages/fe/1c/5f6dbf18e8b73e0a5472466f0ea8d48ce9efae39bd2ff38cebf8dce61259/mkl-2021.4.0-py2.py3-none-win_amd64.whl.metadata
  Using cached mkl-2021.4.0-py2.py3-none-win_amd64.whl.metadata (1.4 kB)
Collecting numpy (from torchvision->timm)
  Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/3f/6b/5610004206cf7f8e7ad91c5a85a8c71b2f2f8051a0c0c4d5916b76d6cbb2/numpy-1.26.4-cp311-cp311-win_amd64.whl.metadata
  Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl.metadata (61 kB)
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision->timm)
  Obtaining dependency information for pillow!=8.3.*,>=5.3.0 from https://files.pythonhosted.org/packages/0a/16/c83877524c47976f16703d2e05c363244bc1e60ab439e078b3cd046d07db/pillow-10.3.0-cp311-cp311-win_amd64.whl.metadata
  Using cached pillow-10.3.0-cp311-cp311-win_amd64.whl.metadata (9.4 kB)
Collecting packaging>=20.9 (from huggingface_hub->timm)
  Obtaining dependency information for packaging>=20.9 from https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl.metadata
  Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting requests (from huggingface_hub->timm)
  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 tqdm>=4.42.1 (from huggingface_hub->timm)
  Obtaining dependency information for tqdm>=4.42.1 from https://files.pythonhosted.org/packages/18/eb/fdb7eb9e48b7b02554e1664afd3bd3f117f6b6d6c5881438a0b055554f9b/tqdm-4.66.4-py3-none-any.whl.metadata
  Using cached tqdm-4.66.4-py3-none-any.whl.metadata (57 kB)
Collecting intel-openmp==2021.* (from mkl<=2021.4.0,>=2021.1.1->torch->timm)
  Obtaining dependency information for intel-openmp==2021.* from https://files.pythonhosted.org/packages/6f/21/b590c0cc3888b24f2ac9898c41d852d7454a1695fbad34bee85dba6dc408/intel_openmp-2021.4.0-py2.py3-none-win_amd64.whl.metadata
  Using cached intel_openmp-2021.4.0-py2.py3-none-win_amd64.whl.metadata (1.2 kB)
Collecting tbb==2021.* (from mkl<=2021.4.0,>=2021.1.1->torch->timm)
  Obtaining dependency information for tbb==2021.* from https://files.pythonhosted.org/packages/7b/2d/1e1c70fae8ace27e6200fb71c2372a9aeac2baba474b1609d7d466e969b4/tbb-2021.12.0-py3-none-win_amd64.whl.metadata
  Using cached tbb-2021.12.0-py3-none-win_amd64.whl.metadata (1.1 kB)
Collecting colorama (from tqdm>=4.42.1->huggingface_hub->timm)
  Obtaining dependency information for colorama from https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl.metadata
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch->timm)
  Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/b7/a2/c78a06a9ec6d04b3445a949615c4c7ed86a0b2eb68e44e7541b9d57067cc/MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl.metadata
  Using cached MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl.metadata (3.1 kB)
Collecting charset-normalizer<4,>=2 (from requests->huggingface_hub->timm)
  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->huggingface_hub->timm)
  Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb1992be9e948df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl.metadata
  Using cached idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests->huggingface_hub->timm)
  Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/a2/73/a68704750a7679d0b6d3ad7aa8d4da8e14e151ae82e6fee774e6e0d05ec8/urllib3-2.2.1-py3-none-any.whl.metadata
  Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests->huggingface_hub->timm)
  Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/5b/11/1e78951465b4a225519b8c3ad29769c49e0d8d157a070f681d5b6d64737f/certifi-2024.6.2-py3-none-any.whl.metadata
  Using cached certifi-2024.6.2-py3-none-any.whl.metadata (2.2 kB)
Collecting mpmath<1.4.0,>=1.1.0 (from sympy->torch->timm)
  Obtaining dependency information for mpmath<1.4.0,>=1.1.0 from https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl.metadata
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Using cached timm-1.0.3-py3-none-any.whl (2.3 MB)
Using cached segment_anything_hq-0.3-py3-none-any.whl (52 kB)
Using cached torch-2.3.1-cp311-cp311-win_amd64.whl (159.8 MB)
Using cached torchvision-0.18.1-cp311-cp311-win_amd64.whl (1.2 MB)
Using cached huggingface_hub-0.23.3-py3-none-any.whl (401 kB)
Using cached PyYAML-6.0.1-cp311-cp311-win_amd64.whl (144 kB)
Using cached safetensors-0.4.3-cp311-none-win_amd64.whl (287 kB)
Using cached fsspec-2024.6.0-py3-none-any.whl (176 kB)
Using cached mkl-2021.4.0-py2.py3-none-win_amd64.whl (228.5 MB)
Using cached intel_openmp-2021.4.0-py2.py3-none-win_amd64.whl (3.5 MB)
Using cached tbb-2021.12.0-py3-none-win_amd64.whl (286 kB)
Downloading packaging-24.1-py3-none-any.whl (53 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 kB 930.7 kB/s eta 0:00:00
Using cached pillow-10.3.0-cp311-cp311-win_amd64.whl (2.5 MB)
Using cached tqdm-4.66.4-py3-none-any.whl (78 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached filelock-3.14.0-py3-none-any.whl (12 kB)
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl (15.8 MB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached sympy-1.12.1-py3-none-any.whl (5.7 MB)
Using cached certifi-2024.6.2-py3-none-any.whl (164 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached idna-3.7-py3-none-any.whl (66 kB)
Using cached MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl (17 kB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: tbb, mpmath, intel-openmp, urllib3, typing-extensions, sympy, safetensors, pyyaml, pillow, packaging, numpy, networkx, mkl, MarkupSafe, idna, fsspec, filelock, colorama, charset-normalizer, certifi, tqdm, requests, jinja2, torch, huggingface_hub, torchvision, timm, segment-anything-hq
Successfully installed MarkupSafe-2.1.5 certifi-2024.6.2 charset-normalizer-3.3.2 colorama-0.4.6 filelock-3.14.0 fsspec-2024.6.0 huggingface_hub-0.23.3 idna-3.7 intel-openmp-2021.4.0 jinja2-3.1.4 mkl-2021.4.0 mpmath-1.3.0 networkx-3.3 numpy-1.26.4 packaging-24.1 pillow-10.3.0 pyyaml-6.0.1 requests-2.32.3 safetensors-0.4.3 segment-anything-hq-0.3 sympy-1.12.1 tbb-2021.12.0 timm-1.0.3 torch-2.3.1 torchvision-0.18.1 tqdm-4.66.4 typing-extensions-4.12.2 urllib3-2.2.1
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 825, in move
    os.rename(src, real_dst)
**PermissionError: [WinError 5] Accès refusé: 'C:\\Users\\natha\\AppData\\Local\\Temp\\pip-target-srk4cicz\\lib\\python\\networkx' -> 'C:\\Users\\natha\\MVD-addons dependencies\\RotoForge AI\\py_packages\\networkx'**

**During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\commands\install.py", line 510, in run
    self._handle_target_dir(
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\commands\install.py", line 569, in _handle_target_dir
    shutil.move(os.path.join(lib_dir, item), target_item_dir)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 843, in move
    rmtree(src)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 759, in rmtree
    return _rmtree_unsafe(path, onerror)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 622, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 620, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'C:\\Users\\natha\\AppData\\Local\\Temp\\pip-target-srk4cicz\\lib\\python\\networkx\\algorithms\\tests\\__pycache__\\test_max_weight_clique.cpython-311.pyc'**

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\bin\python.exe -m pip install --upgrade pip
Looking in indexes: https://download.pytorch.org/whl/cu121
Collecting torch
  Using cached https://download.pytorch.org/whl/cu121/torch-2.3.1%2Bcu121-cp311-cp311-win_amd64.whl (2423.5 MB)
Collecting torchvision
  Using cached https://download.pytorch.org/whl/cu121/torchvision-0.18.1%2Bcu121-cp311-cp311-win_amd64.whl (5.7 MB)
Installing collected packages: torchvision, torch
Successfully installed torch-2.3.1+cu121 torchvision-0.18.1+cu121
**ERROR: Exception:
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\commands\install.py", line 510, in run
    self._handle_target_dir(
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\commands\install.py", line 565, in _handle_target_dir
    shutil.rmtree(target_item_dir)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 759, in rmtree
    return _rmtree_unsafe(path, onerror)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 622, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 620, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] Accès refusé: 'C:\\Users\\natha\\MVD-addons dependencies\\RotoForge AI\\py_packages\\torch\\lib\\asmjit.dll'**

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\bin\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\__main__.py", line 24, in <module>
    sys.exit(_main())
             ^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\main.py", line 79, in main
    return command.main(cmd_args)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\base_command.py", line 100, in main
    with self.main_context():
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\contextlib.py", line 144, in __exit__
    next(self.gen)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\cli\command_context.py", line 19, in main_context
    with self._main_context:
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\contextlib.py", line 601, in __exit__
    raise exc_details[1]
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\contextlib.py", line 586, in __exit__
    if cb(*exc_details):
       ^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\utils\temp_dir.py", line 156, in __exit__
    self.cleanup()
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\utils\temp_dir.py", line 173, in cleanup
    rmtree(self._path)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 291, in wrapped_f
    return self(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 381, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 327, in iter
    raise retry_exc.reraise()
          ^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 160, in reraise
    raise self.last_attempt.result()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 384, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\site-packages\pip\_internal\utils\misc.py", line 130, in rmtree
    shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 759, in rmtree
    return _rmtree_unsafe(path, onerror)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 617, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  [Previous line repeated 2 more times]
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 622, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\shutil.py", line 620, in _rmtree_unsafe
    os.unlink(fullname)
**PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'C:\\Users\\natha\\AppData\\Local\\Temp\\pip-target-2grjt_o9\\lib\\python\\torch\\include\\ATen\\record_function.h'
FINISHED**
Reloading scripts
addon_utils.disable: rprblender not loaded
addon_utils.disable: bricker_v2-5-0 not loaded
addon_utils.disable: btoa not loaded
addon_utils.disable: RenderManForBlender not loaded
Reloading: <module 'bl_operators' from 'C:\\Program Files\\Blender Foundation\\Blender 4.1\\4.1\\scripts\\startup\\bl_operators\\__init__.py'>
Reloading: <module 'bl_ui' from 'C:\\Program Files\\Blender Foundation\\Blender 4.1\\4.1\\scripts\\startup\\bl_ui\\__init__.py'>
Reloading: <module 'keyingsets_builtins' from 'C:\\Program Files\\Blender Foundation\\Blender 4.1\\4.1\\scripts\\startup\\keyingsets_builtins.py'>
Reloading: <module 'nodeitems_builtins' from 'C:\\Program Files\\Blender Foundation\\Blender 4.1\\4.1\\scripts\\startup\\nodeitems_builtins.py'>
register_class(...):
Warning: 'Exr_Auto_Pass_Saver_Panel' does not contain '_PT_' with prefix and suffix
Exception ignored in: <function PRManRender.__del__ at 0x0000028C29905620>
Traceback (most recent call last):
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\__init__.py", line 72, in __del__
    from . import rman_render
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\rman_render.py", line 3, in <module>
    import rman
  File "C:\Program Files\Pixar\RenderManProServer-24.3\bin\pythonbindings\rman\__init__.py", line 4, in <module>
    import rman.__39__.Ctx as Ctx
  File "C:\Program Files\Pixar\RenderManProServer-24.3\bin\pythonbindings\rman\__39__\Ctx.py", line 15, in <module>
    from ._Ctx import *
ImportError: DLL load failed while importing _Ctx: Le module spécifié est introuvable.
register_class(...):
Info: Registering render engine class: 'PRManRender', bl_idname 'PRMAN_RENDER' has been registered before, unregistering previous
Exception in module register(): C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\__init__.py
Traceback (most recent call last):
  File "C:\Program Files\Pixar\RenderManProServer-24.3\bin\rman_utils\rman_assets\common\shading_node.py", line 14, in <module>
    import oslquery as oslq
  File "C:\Program Files\Pixar\RenderManProServer-24.3\lib\python3.9\Lib\site-packages\oslquery\__init__.py", line 42, in <module>
    from oslquery._oslquery import *
ImportError: DLL load failed while importing _oslquery: Le module spécifié est introuvable.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 444, in enable
    mod.register()
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\__init__.py", line 310, in register
    load_addon()
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\__init__.py", line 276, in load_addon
    from . import rman_presets
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\rman_presets\__init__.py", line 27, in <module>
    from . import ui
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\rman_presets\ui.py", line 40, in <module>
    from . import rmanAssetsBlender as rab
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\RenderManForBlender\rman_presets\rmanAssetsBlender.py", line 26, in <module>
    from rman_utils.rman_assets import core as ra
  File "C:\Program Files\Pixar\RenderManProServer-24.3\bin\rman_utils\rman_assets\core.py", line 59, in <module>
    from rman_utils.rman_assets.common.shading_node import RmanShadingNode  # pylint: disable=unused-import
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Pixar\RenderManProServer-24.3\bin\rman_utils\rman_assets\common\shading_node.py", line 16, in <module>
    import oslquery as oslq
  File "C:\Program Files\Pixar\RenderManProServer-24.3\lib\python3.9\Lib\site-packages\oslquery\__init__.py", line 42, in <module>
    from oslquery._oslquery import *
ImportError: DLL load failed while importing _oslquery: Le module spécifié est introuvable.
RotoForge AI: something went very wrong importing the dependencies, please get that checked
RotoForge AI: Some dependencies are not installed, please install them using the button in the Preferences.
xps_tools updater verbose is enabled
Exception in module register(): C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\bricker_v2-5-0\__init__.py
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 444, in enable
    mod.register()
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\bricker_v2-5-0\__init__.py", line 65, in register
    bpy.utils.register_class(cls)
ValueError: register_class(...): already registered as a subclass 'BRICKER_OT_populate_mat_obj'
Exception in module register(): C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\btoa\__init__.py
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 444, in enable
    mod.register()
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\btoa\__init__.py", line 15, in register
    addon_preferences.register()
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\bpy\utils\__init__.py", line 776, in register
    register_class(cls)
ValueError: register_class(...): already registered as a subclass 'ArnoldAddonPreferences'
engon addon: Verbose is enabled
engon addon: Read in JSON settings from file
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 376, in enable
    mod = importlib.import_module(module_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\rprblender\__init__.py", line 39, in <module>
    from .engine.engine import Engine
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\rprblender\engine\__init__.py", line 54, in <module>
    pyrpr.init(rpr_lib_dir, logging.Log(tag='core'), config.pyrpr_log_calls)
  File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\rprblender\pyrpr.py", line 110, in init
    import __rpr
ModuleNotFoundError: No module named '__rpr'
gc.collect() -> 28483
RotoForge AI: something went very wrong importing the dependencies, please get that checked
RotoForge AI: Some dependencies are not installed, please install them using the button in the Preferences.
P18772:11:17:41:polygoniq.engon.asset_registry:INFO: [asset_registry.py:396] Refreshing registered asset packs from pack-info files: {'C:\\Users\\natha\\polygoniq_asset_packs\\botaniq_full\\botaniq_full.pack-info'}
P18772:11:17:41:polygoniq.engon.asset_registry:INFO: [asset_registry.py:401] Keeping set() as they are
P18772:11:17:41:polygoniq.engon.asset_registry:INFO: [asset_registry.py:404] Will unregister set()
P18772:11:17:41:polygoniq.engon.asset_registry:INFO: [asset_registry.py:411] Will newly register {'C:\\Users\\natha\\polygoniq_asset_packs\\botaniq_full\\botaniq_full.pack-info'}
RotoForge AI: something went very wrong importing the dependencies, please get that checked
RotoForge AI: Some dependencies are not installed, please install them using the button in the Preferences.
RotoForge AI: something went very wrong importing the dependencies, please get that checked
RotoForge AI: Some dependencies are not installed, please install them using the button in the Preferences.
RotoForge AI: something went very wrong importing the dependencies, please get that checked
RotoForge AI: Some dependencies are not installed, please install them using the button in the Preferences.
MagnumVD commented 5 months ago

It could be that there's an incompatibility with a different addon such as renderman or one of the polygoniq ones which sometimes run stuff in the background which could lead to the permissions not being cleared during the installation. Please go manually to your install folder and delete it. After that, please start Blender with factory settings (or deactivate the addons manually and then restart blender) and then try to install it again.

FoxTrotte commented 5 months ago

Okay, so I completely reinstalled Blender and went with default settings, tried re-installing Rotoforge and unfortunately I still get the eaxct same issues

MagnumVD commented 5 months ago

Oh, I just saw you got a 'very wrong' error, which means that it's probably sitting a bit lower. Well now I'm curious. I'll mark this as a bug. Could you please provide me with your PC specs?

FoxTrotte commented 5 months ago

Yup, I have Ryzen 7 3700x RTX 2080 16GB of RAM Asus b450 gaming plus motherboard

FoxTrotte commented 5 months ago

Can confirm that I had this issue also pop up on another PC, I7 12700 RTX 3070 32GB Ram

Weirdly enough I accidentally installed the plug-in on Blender 4.0 and it worked fine there, but I had the exact same issue on Blender 4.1

MagnumVD commented 4 months ago

Could you maybe give me another log (you can add it as a .txt file to your comment) from 4.0 then?

MagnumVD commented 2 months ago

Okay, since this is an overwriting permission error, I think this should hopefully fix it: Go to 'C:\Users\natha\MVD-addons dependencies\RotoForge AI\py_packages\' and delete all folders there. Then open up Blender with admin rights and download the dependencies again.

MagnumVD commented 1 month ago

I'm just going to open this up again, since I also got that issue now, it mostly happens when the dependencies are already installed while installing them. Maybe adding --user to the pip modifiers could help here