I have a Nix Flink package that works 100% correctly on all things Linux. One of its dependencies is a Python environment with apache-flink. When my buddy who has a Mac runs the package he gets the attached error..
Skimming through the error it looks like pyarrow might be the problem which I believe is a dep of apache-beam. But any way I pulled out the Python environment and made a colorful package to attempt to isolate the problem.
# has `apache-flink` no work on Mac
nix run gitlab:usmcamp0811/dotfiles/5fb41f9a60c833656996e4853ebfca3d4d17fc10#macossucksballs
# no `apache-flink` works on Mac
nix run gitlab:usmcamp0811/dotfiles/1c47084208caa0a31ba472e5941a125831ff24e1#macossucksballs
# no `apache-flink` but has `pyarrow` no work on Mac
nix run --refresh gitlab:usmcamp0811/dotfiles/5fb41f9a60c833656996e4853ebfca3d4d17fc10#macossucksballs
It seems to be a problem with PyArrow actually. I got him to run
nix run --refresh gitlab:usmcamp0811/dotfiles/5fb41f9a60c833656996e4853ebfca3d4d17fc10#macossucksballs
error:
… while calling the 'derivationStrict' builtin
at /derivation-internal.nix:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'python3-3.11.9-env'
whose name attribute is located at /nix/store/sj9yrq21wbbfr5715hys3laa2qd6x471-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'passAsFile' of derivation 'python3-3.11.9-env'
at /nix/store/sj9yrq21wbbfr5715hys3laa2qd6x471-source/pkgs/build-support/trivial-builders/default.nix:69:9:
68| inherit buildCommand name;
69| passAsFile = [ "buildCommand" ]
| ^
70| ++ (derivationArgs.passAsFile or [ ]);
error: Missing suitable source/wheel file entry for pyarrow
Describe the issue
I have a Nix Flink package that works 100% correctly on all things Linux. One of its dependencies is a Python environment with
apache-flink
. When my buddy who has a Mac runs the package he gets the attached error..Skimming through the error it looks like
pyarrow
might be the problem which I believe is a dep ofapache-beam
. But any way I pulled out the Python environment and made a colorful package to attempt to isolate the problem.It seems to be a problem with PyArrow actually. I got him to run
Additional context
default.nix
/shell.nix
/flake.nix
:pyproject.toml
: