Skip to content

clap_derive fails to build; TGI requires version bump in setup_scripts/conda_server.sh  #7

@AetherPrior

Description

@AetherPrior

System Info

  • LTI-TGI fork
  • Operating System: Springdale Open Enterprise Linux 8.6 (Modena)
  • Kernel: Linux 4.18.0-372.32.1.el8_6.x86_64
  • Architecture: x86-64

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

  1. Run (base) $ bash setup_scripts/conda_server.sh
  2. Error received when building:
error: failed to compile `text-generation-router v0.9.5 (/home/abhinavr/git_clones/text-generation-inference/router)`, intermediate artifacts can be found at `/home/abhinavr/git_clones/text-generation-inference/target`                                                             

Caused by:
  package `clap_derive v4.5.0` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.70.0 
  Either upgrade to rustc 1.74 or newer, or use
  cargo update -p [email protected] --precise ver
  where `ver` is the latest version of `clap_derive` supporting rustc 1.70.0                                                               
make: *** [Makefile:12: install-router] Error 101

Should be a simple fix, just bump up the rust version here: https://github.com/CoderPat/text-generation-inference/blob/2ee704adb0a90bc95caaaadce66d82eb3108cbc9/setup_scripts/conda_server.sh#L93C1-L93C47

mamba install -y -c conda-forge "rust>=1.74"

Expected behavior

Installation without error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions