shivaraj-bh / ollama-flake

Run ollama natively - powered by Nix
MIT License
13 stars 0 forks source link

`nix run` not working anymore #7

Open drupol opened 4 months ago

drupol commented 4 months ago

Hi!

I was using it until I got this issue:

❯ nix flake update
warning: updating lock file '/home/pol/Code/tmp/my-ollama-flake/flake.lock':
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/6c25325ec30a566f5c0446ceee61ada081903872' (2024-05-29)
  → 'github:nixos/nixpkgs/ac82a513e55582291805d6f09d35b6d8b60637a1' (2024-05-29)
❯ nix run
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpath instead
error: builder for '/nix/store/srsfsff9m53m6hcpvyqjlizkxs6llxbj-ctranslate2-4.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.drv' failed with exit code 1;
       last 2 log lines:
       > Reading index https://pypi.org/simple/ctranslate2/
       > The file ctranslate2-4.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl has not be found in the index https://pypi.org/simple/ctranslate2/
       For full logs, run 'nix log /nix/store/srsfsff9m53m6hcpvyqjlizkxs6llxbj-ctranslate2-4.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.drv'.
error: 1 dependencies of derivation '/nix/store/f9zsg8c2dx3nb441w7v3c02zf9ackccx-python3.10-ctranslate2-4.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x0yfg84dlc3c1sbqn4w6q7dnzh3zqxhv-python3-3.10.14-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0f9rqbgqbmcqbmhg8rajm3szdc3z6znp-open-webui.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3qzd9bkm146r9fl590zi98lg3mcw29yr-open-webui-wrapper.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fx39prvsq4h4m4lykndl4by6rrki2jw9-process-compose-default.json.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bpaykbjs568x81b8x20bphqa3ajh02i9-default.drv' failed to build
shivaraj-bh commented 4 months ago

Thanks for reporting! I can reproduce this as well. Looks like for some reason the .whl file is no longer in pypi.

Anyways, I wanted to upstream open-webui to nixpkgs itself so that we make use of the cache.nixos.org and also have others to maintain the package.

I will upstream until 0.1.124 (the version that is used here) and later we can think about the challenge that comes with 0.1.125 that I mentioned here.

shivaraj-bh commented 4 months ago

Here it is: https://github.com/NixOS/nixpkgs/pull/316248