רוני בן שיטרית
04/06/2025, 7:29 PMcomfy-pack unpack comfy-pack-pkg-name.cpack.zip
and Im getting the following error:
Failed to build `pycocotools @ git+
<https://github.com/nvidia/cocoapi.git@fa44301f7a8b3f95a9f2751d19bfd735b0f6c65d#subdirectory=PythonAPI>`
...
ModuleNotFoundError: No module named 'numpy'
The issue seems to be that the build process is unable to find numpy, even though it's listed in the requirements.txt file that comes with the .cpack.zip package.
The numpy & pycocotools requirements are listed in the requirements.txt file in the following order :
numpy==1.25.2
pycocotools @ git+<https://github.com/nvidia/cocoapi.git@fa44301f7a8b3f95a9f2751d19bfd735b0f6c65d#subdirectory=PythonAPI>
Can you help?Jian Shen Yap
04/07/2025, 3:55 AMFrost Ming
04/07/2025, 4:04 AM[build-system] table in the project’s pyproject.tomlFrost Ming
04/07/2025, 4:06 AMsetuptool as the builder so setuptools is a build dependency. And other packages may use flit or hatchling, both are build requirements, not runtime dependenciesFrost Ming
04/07/2025, 4:07 AMUV_NO_BUILD_ISOLATION=1רוני בן שיטרית
04/07/2025, 8:01 AM▶ Call to `setuptools.build_meta:__legacy__.prepare_metadata_for_build_wheel` failed (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 8, in <module>
ModuleNotFoundError: No module named 'setuptools'
Any other suggestions to resolve this? Thanks in advance!Frost Ming
04/07/2025, 8:02 AMרוני בן שיטרית
04/07/2025, 8:58 AM× Failed to build `pycocotools @ git+<https://github.com/nvidia/cocoapi.git@fa44301f7a8b3f95a9f2751d19bfd735b0f6c65d#subdirectory=PythonAPI>`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta:__legacy__.prepare_metadata_for_build_wheel` failed (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 8, in <module>
ModuleNotFoundError: No module named 'setuptools'
its similar to the error with numpyFrost Ming
04/07/2025, 8:59 AMFrost Ming
04/07/2025, 8:59 AMרוני בן שיטרית
04/07/2025, 9:47 AMFrost Ming
04/07/2025, 9:57 AMUV_NO_BUILD_ISOLATION=1 the build is done in the same environment you install the dependencies. So it reads the packages in the environment.Frost Ming
04/07/2025, 10:00 AMsetuptools and numpy into the target .venv and run unpack again?Frost Ming
04/07/2025, 10:00 AM.venv under the target workspace folder