P4D-Data-Sciences icon indicating copy to clipboard operation
P4D-Data-Sciences copied to clipboard

Enabling Progress in Pip.InstallOptions causes a PIP install error

Open peardox opened this issue 2 years ago • 3 comments

Likely an issue with Lightweight-Python-Wrappers but discovered via this project which makes it easy to replicate

  1. Delete P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python directory (if it exists)
  2. Load P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\install\ThumbsUpDownPythonInstall.dproj
  3. Click on the PyTorch component
  4. Expand the Managers -> Pip -> InstallOptions branch
  5. Enable Progress
  6. Run

At this stage (1) exists so delete it to repeat.

It appears a file lock is placed on the executable after it breaks so recompilation requires removal of the compiled exe.

Relevant output sample

-> torch installation failed. Command error: 2 - Usage:
C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] [package-index-options] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] -r [package-index-options] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] [-e] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] [-e] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] <archive url/path> ...

option --progress-bar: invalid choice: '--extra-index-url' (choose from 'off', 'on', 'ascii', 'pretty', 'emoji')

peardox avatar Jun 12 '22 06:06 peardox

Hi @peardox,

can you attach a sample application reproducing this issue?

lmbelo avatar Jun 17 '22 17:06 lmbelo

@peardox, I'm able to reproduce your issue, then attaching a sample application is not necessary. I will investigate this case and give you a feedback.

lmbelo avatar Jun 17 '22 17:06 lmbelo

Thanks @lmbelo

peardox avatar Jun 17 '22 17:06 peardox