Skip to content

bug: pyenv install is launching a UI window, when it should be a silent install #396

Closed

Description

@scorpion35

Describe the bug
pyenv install 3.10.4 is launching a UI window for the user to click thru and finish the install

To Reproduce
Steps to reproduce the behavior:

  • Install pyenv - https://github.com/pyenv-win/pyenv-win#installation
  • Verify pyenv is properly installed. pyenv --version = 3.0
  • Try to install version of python. 3.10.4 for example - pyenv install 3.10.4, and notice the UI popup
    • image
  • The process will be stuck until someone clicks thru the UI. Not ideal for automation on build machines

Expected behavior

  • Install should be silent and should not expect the user to click thru the UI

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used - cmd prompt

Activity

  1. kirankotari commented on Jun 6, 2022

    @kirankotari
    Member

    Yes, this is know issue from latest python versions i.e 3.10.x and latest 3.9.x versions.

  2. kirankotari commented on Jun 6, 2022

    @kirankotari
    Member

    If anyone can debug why this is happening for these version that will be help full, please let us know the root cause of it, we always welcome you to contribute to this repo.

    Thanks in Advance.

  3. scorpion35 commented on Jun 6, 2022

    @scorpion35
    Author

    Also noticing a different UI some other times

    image

  4. kirankotari commented on Jun 6, 2022

    @kirankotari
    Member

    Yes, we know about this too, Noted.

  5. danhje commented on Jun 16, 2022

    @danhje

    Duplicate of #373. Not super happy with the solution suggested over there though, I have scripts that expect pyenv install x.y.z to work, and don't want to have to update them all to (conditionally) apply the --quiet flag. Is there a good reason to not make that the default behavior?

  6. kirankotari commented on Jun 16, 2022

    @kirankotari
    Member

    The older versions are installing quietly without the flag. This is due to latest python exe versions.

    Why we are not adding --quite by default?
    The enterprise developer based on company rules they will get a popup to get admin rights on installation, if i use --quite by default, these developer won't be able to use pyenv-win.

  7. pinned this issue on Jun 16, 2022
  8. Darsstar commented on Jul 19, 2022

    @Darsstar
    Collaborator

    It is fixed on the master branch. (see #410) If you want to clean up your PC you should uninstall via WIndow's "Add or remove Programs" system settings page and pyenv uninstall after that. re-installing should now work as you were used to.

  9. unpinned this issue on Jul 19, 2022
  10. issam-seghir commented on Aug 3, 2022

    @issam-seghir

    image

    the same problem here but with update the last version of python installed with pyenv and not with system version
    pyenv 2.64.11

  11. Darsstar commented on Aug 3, 2022

    @Darsstar
    Collaborator

    Please upgrade to 3.1 or higher

  12. issam-seghir commented on Aug 3, 2022

    @issam-seghir

    Please upgrade to 3.1 or higher

    i installed the pyenv-win with chocoletey and this the last version on it 2.64.11

  13. kirankotari commented on Aug 3, 2022

    @kirankotari
    Member

    Please upgrade to 3.1 or higher

    i installed the pyenv-win with chocoletey and this the last version on it 2.64.11

    We recommend to use PowerShell with right permissions. It's a single command to Install. This way you can get latest code all the time. We haven't automated chocolatey to take latest code automatically.
    Link: https://github.com/pyenv-win/pyenv-win#power-shell

  14. issam-seghir commented on Aug 3, 2022

    @issam-seghir

    Please upgrade to 3.1 or higher

    I installed the pyenv-win with chocolatey and this the last version on it 2.64.11

    We recommend to use PowerShell with right permissions. It's a single command to Install. This way you can get latest code all the time. We haven't automated chocolatey to take the latest code automatically. Link: https://github.com/pyenv-win/pyenv-win#power-shell

    so before that, i need to uninstall the chocolatey version, and what about my python versions , do i need to reinstall all of the themes ?

  15. kirankotari commented on Aug 3, 2022

    @kirankotari
    Member

    No need to uninstall pyenv-win, the Powershell command needs to override existing version. This must not disturb your existing python AFAIK, but we haven't test this scenario which is OOB. You can take a backup of python versions which are in following path %USERPROFILE%/.pyenv/pyenv-win/versions JIC (Just in case).

  16. issam-seghir commented on Aug 3, 2022

    @issam-seghir

    No need to uninstall pyenv-win, the Powershell command needs to override the existing version. This must not disturb your existing python AFAIK, but we haven't test this scenario which is OOB. You can take a backup of python versions which are in following path %USERPROFILE%/.pyenv/pyenv-win/versions JIC (Just in case).

    error when installing with PowerShell because i don't have the permission
    so I use the command:
    ⚡ 🚀 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

    but ended with another error !! (i run PowerShell with administrator permission )

    Set-ExecutionPolicy: Access to the path 'C:\ProgramFiles\WindowsApps\Microsoft.PowerShell_7.2.5.0_x64__8wekyb3d8bbwe\powershell.config.json' is denied.
    To change the execution policy for the default (LocalMachine) scope, start PowerShell with the "Run as administrator" option. To change the execution policy for the current user, run "Set-ExecutionPolicy -Scope CurrentUser".
    
  17. Darsstar commented on Aug 3, 2022

    @Darsstar
    Collaborator

    Try Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions