nix-community / pypi2nix

Abandoned! Generate Nix expressions for Python packages
194 stars 47 forks source link

For any package I want to install: "Error: Internal Error: Calculate hash value for sources in github repo nix-community/pypi2nix-overrides." #447

Open moritzschaefer opened 4 years ago

moritzschaefer commented 4 years ago

When trying to install a pip package using pypi2nix, I get the following error message:

moritz@moxps ~> pypi2nix -e datacache INFO: pypi2nix v2.0.4 running ... INFO: Downloading wheels and creating wheelhouse ... INFO: Downloading runtime requirements WARNING: You are using pip version 20.0.dev0; however, version 20.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. WARNING: You are using pip version 20.0.dev0; however, version 20.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. WARNING: You are using pip version 20.0.dev0; however, version 20.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. INFO: Build wheels of setup and runtime requirements INFO: Extracting metadata from pypi.python.org ... INFO: -- sources --------------------------------------------------------------- INFO: -------------------------------------------------------------------------- INFO: Generating Nix expressions ... Error: Internal Error: Calculate hash value for sources in github repo nix-community/pypi2nix-overrides.

No matter which package I try to install (I also tried "requests" and "pyensembl"), the error message remains the same. Unfortunately, the error message is not very precise, so I'd appreciate any information.

seppeljordan commented 4 years ago

Hi, You are (most likely) using an unstable version of nix which is currently incompatible with pypi2nix.

jnoortheen commented 4 years ago

Yes this is happening with nix flakes. mostly nix versions >=2.4