!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

325 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
9 Nov 2023
@k900:0upti.meK900
importlib.metadata.PackageNotFoundError: No package metadata was found for The 'safetensors>=0.3.1' distribution was not found and is required by this application.
19:08:18
@k900:0upti.meK900The actual package it's complaining about is not transformers19:08:26
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @k900:0upti.me
The actual package it's complaining about is not transformers
it's llama-index right?
19:15:37
@k900:0upti.meK900No?19:15:42
@k900:0upti.meK900Read the error19:15:44
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howI have, how are you figuring this out?19:15:50
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how

No package metadata was found for safetensors

19:16:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how

ImportError: HuggingFaceEmbedding requires transformers to be installed.

19:16:24
@k900:0upti.meK900
In reply to@k900:0upti.me
importlib.metadata.PackageNotFoundError: No package metadata was found for The 'safetensors>=0.3.1' distribution was not found and is required by this application.
^
19:17:07
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howOh sorry, I didn't realise that was a quote in my client19:17:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howI thought it was juat a reply to my big log 19:17:26
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howThere are other programs in this python chain, that use the safetensors that is being provided correctly19:17:52
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howThe first thing I did was put safetensors in the propagatedBuildInputs of eveyrthing I could think of19:18:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howit did not seem to change anything 19:18:17
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * The first thing I did was put safetensors in the propagatedBuildInputs of everything I could think of19:18:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how Why does safetensors have no metadata? That's what I don't understand. And how do I give it the metadata it needs? K900 ⚡️ 19:21:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
                safetensors = super.safetensors.overridePythonAttrs
                  (
                    old: {
                      sourceRoot = "safetensors-0.4.0/bindings/python";
                      cargoDeps = pkgs.rustPlatform.importCargoLock {
                        lockFile = ./nix/safetensors/Cargo.lock;
                      };
                      nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [
                        pkgs.rustPlatform.cargoSetupHook
                        pkgs.rustPlatform.maturinBuildHook
                      ];
                    }
                  );

19:21:54
@k900:0upti.meK900It doesn't have "no metadata"19:21:58
@k900:0upti.meK900 It's missing something 19:22:06
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howOh, it can't find the package 19:22:17
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * Oh, it can't find the package?19:22:19
@k900:0upti.meK900 You can try calling importlib.metadata.version("safetensors") in a Python shell yourself 19:22:20
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how PackageNotFoundError 19:22:23
@k900:0upti.meK900And see why it fails19:22:24
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
ls result/lib/python3.11/site-packages/safetensors_
safetensors_python-0.4.0.dist-info/ safetensors_rust/      
19:24:05
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howgrrr19:24:21
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howit's not ending up in the site-packages 19:24:26
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howbut the dist-info is 19:24:44
@k900:0upti.meK900 The dist-info is for safetensors_python 19:25:56
@k900:0upti.meK900 But the package it's looking for is safetensors 19:26:04

Show newer messages


Back to Room ListRoom Version: 6