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
Hello there!
I wanted to build a python package with nix and used the examples/packages/languages/python-local-development as a template. I'm using a pyproject.toml to specify my dependencies and generated a lock.json.
Generating all the lock files was no problem, but running nix develop results in an error:
error: builder for '/nix/store/9azr8gikjzfcdig6pv4ssk7nnb7wbisf-python3.12-numba-0.59.0.drv' failed with exit code 1;
last 10 log lines:
> libgcc_s.so.1 -> found: /nix/store/alxp4kb0dgfczqwd7xfrpflhq50w0wck-gcc-13.2.0-libgcc/lib
> setting RPATH to: /nix/store/pp0jsd045xvfsz60kpbkfxbs9pbpk8z5-gcc-13.2.0-lib/lib:/nix/store/alxp4kb0dgfczqwd7xfrpflhq50w0wck-gcc-13.2.0-libgcc/lib
> searching for dependencies of /nix/store/5r5vhsjv8d5pip0h7c21swn1zid0xd3w-python3.12-numba-0.59.0/lib/python3.12/site-packages/numba/experimental/jitclass/_box.cpython-312-x86_64-linux-gnu.so
> auto-patchelf: 1 dependencies could not be satisfied
> error: auto-patchelf could not satisfy dependency libtbb.so.12 wanted by /nix/store/5r5vhsjv8d5pip0h7c21swn1zid0xd3w-python3.12-numba-0.59.0/lib/python3.12/site-packages/numba/np/ufunc/tbbpool.cpython-312-x86_64-linux-gnu.so
> auto-patchelf failed to find all the required dependencies.
> Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
> /nix/store/v099hqvw5z87423p4hz1vfhzaqa07dii-stdenv-linux/setup: line 74: pop_var_context: head of shell_variables not a function context
> /nix/store/v099hqvw5z87423p4hz1vfhzaqa07dii-stdenv-linux/setup: line 1475: pop_var_context: head of shell_variables not a function context
> /nix/store/v099hqvw5z87423p4hz1vfhzaqa07dii-stdenv-linux/setup: line 1578: pop_var_context: head of shell_variables not a function context
For full logs, run 'nix log /nix/store/9azr8gikjzfcdig6pv4ssk7nnb7wbisf-python3.12-numba-0.59.0.drv'.
error: 1 dependencies of derivation '/nix/store/59hlkhrrkr18mcalsgvrs92ii2lfi4fv-python3.12-birdnet-0.1.0-env.drv' failed to build
I guess this libgcc_s.so.1 somehow needs to be included in the devshell, but I'm quiet unsure how to accomplish this.
Thats why I'm asking for help, thanks in advance :) !
Those the flake.nix and default.nix files I used:
# flake.nix{description="Python birdnet";inputs={dream2nix.url="github:nix-community/dream2nix";nixpkgs.follows="dream2nix/nixpkgs";};outputs=inputs @ {self,dream2nix,nixpkgs,
...
}: letsystem="x86_64-linux";in{# All packages defined in ./packages/<name> are automatically added to the flake outputs# e.g., 'packages/hello/default.nix' becomes '.#packages.hello'packages.${system}.default=dream2nix.lib.evalModules{packageSets.nixpkgs=inputs.dream2nix.inputs.nixpkgs.legacyPackages.${system};modules=[./default.nix{paths.projectRoot=./.;# can be changed to ".git" or "flake.nix" to get rid of .project-rootpaths.projectRootFile="flake.nix";paths.package=./.;}];};};}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there!
I wanted to build a python package with nix and used the examples/packages/languages/python-local-development as a template. I'm using a pyproject.toml to specify my dependencies and generated a lock.json.
Generating all the lock files was no problem, but running
nix develop
results in an error:I guess this
libgcc_s.so.1
somehow needs to be included in the devshell, but I'm quiet unsure how to accomplish this.Thats why I'm asking for help, thanks in advance :) !
Those the flake.nix and default.nix files I used:
Beta Was this translation helpful? Give feedback.
All reactions