Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4706

[Build Failure] Cannot install hatch on RHEL 8.3 (zSeries)

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      Cargo, the Rust package manager, is not installed or is not on PATH.

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_test_different_cpu_architectures__platform~rhel83_zseries_auth_ssl~noauth_nossl_test_6.0_standalone_e6b95f65953e01e435004af069a6976473eaf841_24_08_29_14_02_47/logs?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      Hatch depends on cryptography, which does not have wheels for s390x.

      Stack trace:

      [2024/08/29 09:31:56.674] ++ python -m pip install -q hatch
      [2024/08/29 09:31:56.674]   error: subprocess-exited-with-error
      [2024/08/29 09:31:56.674]   × Preparing metadata (pyproject.toml) did not run successfully.
      [2024/08/29 09:31:56.674]   │ exit code: 1
      [2024/08/29 09:31:56.674]   ╰─> [6 lines of output]
      [2024/08/29 09:31:56.674]       Cargo, the Rust package manager, is not installed or is not on PATH.
      [2024/08/29 09:31:56.674]       This package requires Rust and Cargo to compile extensions. Install it through
      [2024/08/29 09:31:56.674]       the system's package manager or via https://rustup.rs/
      [2024/08/29 09:31:56.674]       Checking for Rust toolchain....
      [2024/08/29 09:31:56.674]       [end of output]
      [2024/08/29 09:31:56.674]   note: This error originates from a subprocess, and is likely not a problem with pip.
      [2024/08/29 09:31:56.685] error: metadata-generation-failed
      [2024/08/29 09:31:56.685] × Encountered error while generating package metadata.
      [2024/08/29 09:31:56.685] ╰─> See above for output.
      [2024/08/29 09:31:56.685] note: This is an issue with the package mentioned above, not pip.
      [2024/08/29 09:31:56.685] hint: See above for details.
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: