yusing / ComfyUI_TensorRT

GNU Affero General Public License v3.0
2 stars 1 forks source link

Attempting to install tensorrt-cu12_libs>=10.1.0 from requirements results in error: No module named 'nvidia_stub' #5

Open ech3lon42 opened 3 days ago

ech3lon42 commented 3 days ago

PS I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_TensorRT> ......\python_embeded\python.exe -m pip install -r .\requirements.txt Collecting setuptools<60 (from -r .\requirements.txt (line 1)) Using cached setuptools-59.8.0-py3-none-any.whl.metadata (5.0 kB) Collecting tensorrt-cu12>=10.1.0 (from -r .\requirements.txt (line 2)) Using cached tensorrt-cu12-10.1.0.tar.gz (18 kB) Preparing metadata (setup.py) ... done Collecting tensorrt-cu12_bindings>=10.1.0 (from -r .\requirements.txt (line 3)) Using cached tensorrt_cu12_bindings-10.1.0-cp311-none-win_amd64.whl.metadata (608 bytes) Collecting tensorrt-cu12_libs>=10.1.0 (from -r .\requirements.txt (line 4)) Using cached tensorrt_cu12_libs-10.1.0.tar.gz (630 bytes) Installing build dependencies ... done Getting requirements to build wheel ... done ERROR: Exception: Traceback (most recent call last): File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\cli\base_command.py", line 179, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper return func(self, options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\commands\install.py", line 377, in run requirement_set = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve result = self._result = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 397, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool return bool(self._sequence) ^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 174, in bool return any(self) ^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 162, in return (c for c in iterator if id(c) not in self._incompatible_ids) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built candidate = func() ^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 185, in _make_candidate_from_link base: Optional[BaseCandidate] = self._make_base_candidate_from_link( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 231, in _make_base_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( ^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 303, in init super().init( File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 158, in init self.dist = self._prepare() ^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 235, in _prepare dist = self._prepare_distribution() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\operations\prepare.py", line 527, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\operations\prepare.py", line 642, in _prepare_linked_requirement dist = _get_prepared_distribution( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\operations\prepare.py", line 72, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata( File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata self._install_build_reqs(finder) File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\distributions\sdist.py", line 126, in _install_build_reqs build_reqs = self._get_build_requires_wheel() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel return backend.get_requires_for_build_wheel() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_internal\utils\misc.py", line 709, in get_requires_for_build_wheel return super().get_requires_for_build_wheel(config_settings=cs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel return self._call_hook('get_requires_for_build_wheel', { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook raise BackendUnavailable(data.get('traceback', '')) pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last): File "I:\StableDiffusion\ComfyNew\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in _build_backend obj = import_module(mod_path) ^^^^^^^^^^^^^^^^^^^^^^^ File "importlib__init__.py", line 126, in import_module File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1126, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1140, in _find_and_load_unlocked ModuleNotFoundError: No module named 'nvidia_stub'

yusing commented 3 days ago

Hi, please uninstall tensorrt first if its installed pip uninstall tensorrt then try this pip install -r requirements.txt --extra-index-url https://pypi.nvidia.com