You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Additional context
default.nix/shell.nix/flake.nix:
{lib,inputs,pkgs, ... }:
letsrc=./.;pypkgs-build-requirements={avro=["setuptools"];avro-python3=["setuptools""python-snappy""zstandard""isort""pycodestyle"];apache-flink=["setuptools""pyarrow"];mocker=["setuptools"];apache-flink-libraries=["setuptools"];};p2n-overrides=pkgs.poetry2nix.defaultPoetryOverrides.extend(self: super:
builtins.mapAttrs(package: build-requirements:
super."${package}".overridePythonAttrs(oldAttrs: {buildInputs=(oldAttrs.buildInputsor[])++(builtins.map(req: super."${req}")build-requirements);}))pypkgs-build-requirements);python-env=pkgs.poetry2nix.mkPoetryEnv{projectDir=src;python=pkgs.python311;overrides=p2n-overrides;preferWheels=true;# Prefer wheels to speed up the build process};inpython-env
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
:The text was updated successfully, but these errors were encountered: