brainy-petabyte-49210
12/15/2023, 4:57 PMpants
framework. I need to include the pytorch_quantization
library which can only been installed successfully from Github
My requirements.txt
now includes
pytorch-quantization @ git+<https://github.com/NVIDIA/TensorRT.git@a1820ecdf6c14b7e50d2feb4fff4cc149dd6846b#egg=pkg&subdirectory=tools/pytorch-quantization>
in the python/BUILD
file - I've included
overrides={
"pytorch-quantization": {"dependencies": [":default#torch"]},
When I try and generate the lockfiles,, the following error occurs
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
How do I diagnose this? The lockfile was create successfully when I didn't include pytorch-quantization
in the requirements.txt
I've tried generating the lockfile with --print-stacktrace -ldebug
but it doesn't yield anything informativelate-keyboard-89314
12/15/2023, 7:42 PM--keep-sandboxes=on_failure
? That should let you inspect the exact commands that are being run by pants and rerun them yourself.late-keyboard-89314
12/15/2023, 7:44 PMgcc
is missing when trying to install that package?happy-kitchen-89482
12/15/2023, 8:46 PMhappy-kitchen-89482
12/15/2023, 8:47 PMbrainy-petabyte-49210
12/18/2023, 10:25 AMCan you create a small demo github repo that exposes this problem?sure - will try! thank you just to reiterate what the main problem is I need to include
pytorch_quantization
as part of my requirements.txt
The usual way to install the package
pip install --extra-index-url <https://pypi.nvidia.com> pytorch-quantization
causes an ImportError
at run-time and NVIDIA recommend the way to install it is by cloning the repo and doing
• cd tools/pytorch-quantization && pip install .hence I now includes in my
requirements.txt
pytorch-quantization @ git+<https://github.com/NVIDIA/TensorRT.git@a1820ecdf6c14b7e50d2feb4fff4cc149dd6846b#egg=pkg&subdirectory=tools/pytorch-quantization>
I can confirm this works in a normal pip install -r requirements.txt
clean-controller-70177
04/27/2024, 1:07 AM