Nix Error : attribute ‘prybar-python310’ missing

Question:
Hey, while trying to use nix to install ffmpeg into my python project, i get an error. I’ve never used nix before, so sorry if i miss something obvious.

Repl link:
https://replit.com/@ravyspielt/Drop-Bot


code snippet
{ pkgs }: {
deps = [
pkgs.nodejs-19_x
pkgs.python310Full
pkgs.replitPackages.prybar-python310
pkgs.replitPackages.stderred
pkgs.ffmpeg.bin
];
env = {
PYTHON_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
# Needed for pandas / numpy
pkgs.stdenv.cc.cc.lib
pkgs.zlib
# Needed for pygame
pkgs.glib
# Needed for matplotlib
pkgs.xorg.libX11
pkgs.libopus
];
PYTHONHOME = “${pkgs.python310Full}”;
PYTHONBIN = “${pkgs.python310Full}/bin/python3.10”;
LANG = “en_US.UTF-8”;
STDERREDBIN = “${pkgs.replitPackages.stderred}/bin/stderred”;
PRYBAR_PYTHON_BIN = “${pkgs.replitPackages.prybar-python310}/bin/prybar-python310”;
};
}

Hi @simtismus , welcome to the forums!
You can remove everything to make replit.nix look like this:

{ pkgs }: {
  deps = [
  ];
}

Then, use poetry to add ffmpeg. In the Shell, enter this: poetry add ffmpeg.
Hope this helps!

2 Likes

Hey, thanks for the fast answer. Worked!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.