I keep getting this error packaging.version.InvalidVersion: Invalid version: 'unstable-2022-01-20' when trying to start up my nix environment. Below is a more complete stack trace of the error:
Stack trace
```
building '/nix/store/911dvip5w647kdq0pxiwsahlgg01wqa7-mach_nix_file.drv'...
Traceback (most recent call last):
File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/generate.py", line 110, in
main()
File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/generate.py", line 103, in main
do()
File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/generate.py", line 46, in do
nixpkgs = NixpkgsIndex(nixpkgs_json)
File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/data/nixpkgs.py", line 32, in __init__
version = parse_ver(nix_data["version"])
File "/nix/store/ixxrk9r5yvdmqfcp4axk9nb6gzjaby5y-python3-3.9.16-env/lib/python3.9/site-packages/packaging/version.py", line 52, in parse
return Version(version)
File "/nix/store/ixxrk9r5yvdmqfcp4axk9nb6gzjaby5y-python3-3.9.16-env/lib/python3.9/site-packages/packaging/version.py", line 197, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'unstable-2022-01-20'
error: builder for '/nix/store/911dvip5w647kdq0pxiwsahlgg01wqa7-mach_nix_file.drv' failed with exit code 1;
last 10 log lines:
> do()
> File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/generate.py", line 46, in do
> nixpkgs = NixpkgsIndex(nixpkgs_json)
> File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/data/nixpkgs.py", line 32, in __init__
> version = parse_ver(nix_data["version"])
> File "/nix/store/ixxrk9r5yvdmqfcp4axk9nb6gzjaby5y-python3-3.9.16-env/lib/python3.9/site-packages/packaging/version.py", line 52, in parse
> return Version(version)
> File "/nix/store/ixxrk9r5yvdmqfcp4axk9nb6gzjaby5y-python3-3.9.16-env/lib/python3.9/site-packages/packaging/version.py", line 197, in __init__
> raise InvalidVersion(f"Invalid version: '{version}'")
> packaging.version.InvalidVersion: Invalid version: 'unstable-2022-01-20'
For full logs, run 'nix log /nix/store/911dvip5w647kdq0pxiwsahlgg01wqa7-mach_nix_file.drv'.
```
This began to happen after I updated the revs and sha sums of both nixpkgs and pypi-deps-db. The previous revs were e64df9c5c8ffa0c9a82006e410ad630e32e6063d and c6a6acdbc1320cbb36d0fee0be00a0c5baf76ad9, respectively. Any idea what's going on or suggestions I could try?
I keep getting this error
packaging.version.InvalidVersion: Invalid version: 'unstable-2022-01-20'
when trying to start up my nix environment. Below is a more complete stack trace of the error:Stack trace
``` building '/nix/store/911dvip5w647kdq0pxiwsahlgg01wqa7-mach_nix_file.drv'... Traceback (most recent call last): File "/nix/store/bl1hg4jv6m0xqaqzlfifs4ykqqd0g9jv-596icq9xnd5b4qipna0rv458y4vgrq5r-mach-nix-src/mach_nix/generate.py", line 110, inThis is my sources.json file:
sources.json
```json { "gitignore": { "branch": "master", "description": "Nix functions for filtering local git sources", "homepage": "", "owner": "hercules-ci", "repo": "gitignore.nix", "rev": "bff2832ec341cf30acb3a4d3e2e7f1f7b590116a", "sha256": "0va0janxvmilm67nbl81gdbpppal4aprxzb25gp9pqvf76ahxsci", "type": "tarball", "url": "https://github.com/hercules-ci/gitignore.nix/archive/bff2832ec341cf30acb3a4d3e2e7f1f7b590116a.tar.gz", "url_template": "https://github.com/This began to happen after I updated the revs and sha sums of both
nixpkgs
andpypi-deps-db
. The previous revs weree64df9c5c8ffa0c9a82006e410ad630e32e6063d
andc6a6acdbc1320cbb36d0fee0be00a0c5baf76ad9
, respectively. Any idea what's going on or suggestions I could try?