Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2637

Fix pyenv initialization for our release process

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.2.0
    • Component/s: QA/CI

      Description

      Since the past week, the release job is failing due to a change in pyenv:

      >>> [pyenv] Downloading and installing
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  1687  100  1687    0     0  11635      0 --:--:-- --:--:-- --:--:-- 11797
      Cloning into '/Users/travis/build/nuxeo/deploy-dir/.pyenv'...
      Cloning into '/Users/travis/build/nuxeo/deploy-dir/.pyenv/plugins/pyenv-doctor'...
      Cloning into '/Users/travis/build/nuxeo/deploy-dir/.pyenv/plugins/pyenv-installer'...
      Cloning into '/Users/travis/build/nuxeo/deploy-dir/.pyenv/plugins/pyenv-update'...
      Cloning into '/Users/travis/build/nuxeo/deploy-dir/.pyenv/plugins/pyenv-virtualenv'...
      Cloning into '/Users/travis/build/nuxeo/deploy-dir/.pyenv/plugins/pyenv-which-ext'...
      >>> [pyenv] Initializing
      WARNING: `pyenv init -` no longer sets PATH.
      Run `pyenv init` to see the necessary changes to make to your configuration.
      python-build: use openssl@1.1 from homebrew
      python-build: use readline from homebrew
      Downloading Python-3.9.5.tar.xz...
      -> https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz
      Installing Python-3.9.5...
      python-build: use readline from homebrew
      Installed Python-3.9.5 to /Users/travis/build/nuxeo/deploy-dir/.pyenv/versions/3.9.5
      >>> [pyenv] Using Python 3.9.5
      >>> Verifying Python version in use
      >>> Python version is
      >>> Drive requires 3.9.5
      The command "bash tools/$TRAVIS_OS_NAME/travis.sh" exited with 1.
      

      Revelant link: https://github.com/pyenv/pyenv/issues/1906

      The fix seems to be:

      eval "$(pyenv init -)"
      + eval "$(pyenv init --path)"
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m