heal-research / pyoperon

Python bindings and scikit-learn interface for the Operon library for symbolic regression.
MIT License
34 stars 10 forks source link

Unable to install pyoperon by the README's nix develop command #9

Closed unary-code closed 10 months ago

unary-code commented 1 year ago

I am on a Macbook (M1, 2020).

When I run "nix develop github:heal-research/pyoperon --no-write-lock-file" on my "/Users/[MY_USER_NAME]" directory:

I get the error message warning: not writing modified lock file of flake 'github:heal-research/pyoperon': • Added input 'flake-utils': 'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31) • Added input 'flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Added input 'foolnotion': 'github:foolnotion/nur-pkg/00f1e56faf00f6dca253ee3ed3e3327809a48852' (2023-05-29) • Added input 'foolnotion/nixpkgs': 'github:NixOS/nixpkgs/729058d86a76758ba3bc08c20658647a427a772f' (2023-06-09) • Added input 'nixpkgs': 'github:nixos/nixpkgs/729058d86a76758ba3bc08c20658647a427a772f' (2023-06-09) • Added input 'pratt-parser': 'github:foolnotion/pratt-parser-calculator/025ba103339bb69e3b719b62f3457d5cbb9644e6' (2022-11-15) • Added input 'pratt-parser/flake-utils': 'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31) • Added input 'pratt-parser/flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Added input 'pratt-parser/foolnotion': 'github:foolnotion/nur-pkg/00f1e56faf00f6dca253ee3ed3e3327809a48852' (2023-05-29) • Added input 'pratt-parser/foolnotion/nixpkgs': 'github:NixOS/nixpkgs/729058d86a76758ba3bc08c20658647a427a772f' (2023-06-09) • Added input 'pratt-parser/nixpkgs': 'github:nixos/nixpkgs/729058d86a76758ba3bc08c20658647a427a772f' (2023-06-09) error: … while calling the 'derivationStrict' builtin

     at /builtin/derivation.nix:9:12: (source not available)

   … while evaluating derivation 'nix-shell'
     whose name attribute is located at /nix/store/n39wd2j5hmg3cbn9kyqz8dw2kfbnvgfz-source/pkgs/stdenv/generic/make-derivation.nix:303:7

   … while evaluating attribute '__impureHostDeps' of derivation 'nix-shell'

     at /nix/store/n39wd2j5hmg3cbn9kyqz8dw2kfbnvgfz-source/pkgs/stdenv/generic/make-derivation.nix:462:7:

      461|       __propagatedSandboxProfile = lib.unique (computedPropagatedSandboxProfile ++ [ propagatedSandboxProfile ]);
      462|       __impureHostDeps = computedImpureHostDeps ++ computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps ++ __impureHostDeps ++ stdenv.__extraImpureHostDeps ++ [
         |       ^
      463|         "/dev/zero"

   error: evaluation aborted with the following error message: 'Function called without required argument "xxhash" at /nix/store/m7yb7kg5bny9xvn4chsc68nwjf0jjxk6-source/nix/operon/default.nix:25, did you mean "xxHash", "ethash" or "phash"?'

"

Then after, when I do "pip show pyoperon", I get the following message: "WARNING: Package(s) not found: pyoperon". So it is pretty evident that I did not install pyoperon. Anyone have advice?

ekg commented 11 months ago

I've got the same problem. I'm pursuing this approach because I get a glibc mismatch when installing from pip.

foolnotion commented 11 months ago

Have you tried installing one of the released wheels? https://github.com/heal-research/pyoperon/releases/

If you want to build from source, I've updated the documentation here (please use the cpp20 branch).

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.