Skip to content

Cannot install #83

@ymoisan

Description

@ymoisan

🐛 Bug Description

Hi,

Ubuntu 24.04 on an awfully old Thinkpad 530 (no GPU).

$ cargo install shimmy --features huggingface

resulted in a bunch of compiled packages except for llama

Compiling llama-cpp-2 v0.1.122
error: couldn't read `/home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/../templates/docker/Dockerfile`: No such file or directory (os error 2)
  --> /home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/templates.rs:80:30
   |
80 |     let dockerfile_content = include_str!("../templates/docker/Dockerfile");
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: couldn't read `/home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/../templates/docker/Dockerfile`: No such file or directory (os error 2)
   --> /home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/templates.rs:156:30
    |
156 |     let dockerfile_content = include_str!("../templates/docker/Dockerfile");
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: couldn't read `/home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/../templates/docker/Dockerfile`: No such file or directory (os error 2)
   --> /home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/templates.rs:176:30
    |
176 |     let dockerfile_content = include_str!("../templates/docker/Dockerfile");
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: couldn't read `/home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/../templates/frameworks/fastapi/main.py`: No such file or directory (os error 2)
   --> /home/my_user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/shimmy-1.6.0/src/templates.rs:190:24
    |
190 |     let main_content = include_str!("../templates/frameworks/fastapi/main.py");
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: [email protected]: Building shimmy version 1.6.0
error: could not compile `shimmy` (lib) due to 4 previous errors

Missing files ?

🔄 Steps to Reproduce

cargo install shimmy --features huggingface

✅ Expected Behavior

Installs shimmy :-)

❌ Actual Behavior

Errors out on compilation of llama

📦 Shimmy Version

Latest (main branch)

💻 Operating System

Linux (Ubuntu)

📥 Installation Method

cargo install shimmy

🌍 Environment Details

$ rustup --version
rustup 1.28.2 (e4f3ad6f8 2025-04-28)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.90.0 (1159e78c4 2025-09-14)

📋 Logs/Error Messages


📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions