The .py
file generated by gnuradio-companion
can only be run by the python of gnuradio (i.e., gnuradio3_8Packages.python
), which does not have numpy.
How can I use numpy and gnuradio together?
The nix file I wrote for this purpose is
with import <nixpkgs> {
overlays=[
];
};
stdenv.mkDerivation {
name = "gnuradio-shell";
buildInputs = [
pkg-config
(gnuradio3_8.override {
extraPackages = with gnuradio3_8Packages; [
osmosdr
limesdr
gnuradio
python
];
})
];
PYTHONPATH="${gnuradio3_8.out}/lib/python3.10/site-packages:${python310Packages.packaging}/lib/python3.10/site-packages";
}
, which does not work for me.