Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling Progress in Pip.InstallOptions causes a PIP install error #2

Open
peardox opened this issue Jun 12, 2022 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@peardox
Copy link
Contributor

peardox commented Jun 12, 2022

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 peardox changed the title Enabling Progress in PipOption causes a PIP install error Enabling Progress in PipInstallOptions causes a PIP install error Jun 12, 2022
@peardox peardox changed the title Enabling Progress in PipInstallOptions causes a PIP install error Enabling Progress in Pip.InstallOptions causes a PIP install error Jun 12, 2022
@lmbelo
Copy link
Member

lmbelo commented Jun 17, 2022

Hi @peardox,

can you attach a sample application reproducing this issue?

@lmbelo lmbelo self-assigned this Jun 17, 2022
@lmbelo lmbelo added the Awaiting Feedback Waiting for feedback from submitter or others. label Jun 17, 2022
@lmbelo
Copy link
Member

lmbelo commented Jun 17, 2022

@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 lmbelo added bug Something isn't working and removed Awaiting Feedback Waiting for feedback from submitter or others. labels Jun 17, 2022
@peardox
Copy link
Contributor Author

peardox commented Jun 17, 2022

Thanks @lmbelo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants