Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

TypeError: 'PrefetchedRepository' object is not subscriptable #470

Open
Enteee opened this issue Jan 22, 2021 · 2 comments
Open

TypeError: 'PrefetchedRepository' object is not subscriptable #470

Enteee opened this issue Jan 22, 2021 · 2 comments

Comments

@Enteee
Copy link

Enteee commented Jan 22, 2021

Same issue as: #464

On the current nixpkgs unstable.

$ nix-shell \
  -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/f2c88014c8cc7b93be871248747e17528da2b3bf.tar.gz \
  -p pypi2nix \
  --command "pypi2nix -e  everett==1.0.3"

I get a:

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.3.3 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 ...
Traceback (most recent call last):
  File "/nix/store/iqcjqk0yyhdpkgxdga7sypv4f1jhdy2s-pypi2nix-2.0.4/bin/.pypi2nix-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/xfqcnnp7rvdf5kyw1mwvns6m400w53jw-python3.8-click-7.1.2/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/nix/store/xfqcnnp7rvdf5kyw1mwvns6m400w53jw-python3.8-click-7.1.2/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/nix/store/xfqcnnp7rvdf5kyw1mwvns6m400w53jw-python3.8-click-7.1.2/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nix/store/xfqcnnp7rvdf5kyw1mwvns6m400w53jw-python3.8-click-7.1.2/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/nix/store/iqcjqk0yyhdpkgxdga7sypv4f1jhdy2s-pypi2nix-2.0.4/lib/python3.8/site-packages/pypi2nix/cli.py", line 219, in main
    Pypi2nix(configuration).run()
  File "/nix/store/iqcjqk0yyhdpkgxdga7sypv4f1jhdy2s-pypi2nix-2.0.4/lib/python3.8/site-packages/pypi2nix/main.py", line 86, in run
    main(
  File "/nix/store/iqcjqk0yyhdpkgxdga7sypv4f1jhdy2s-pypi2nix-2.0.4/lib/python3.8/site-packages/pypi2nix/stage3.py", line 98, in main
    common_overrides_expressions = [
  File "/nix/store/iqcjqk0yyhdpkgxdga7sypv4f1jhdy2s-pypi2nix-2.0.4/lib/python3.8/site-packages/pypi2nix/stage3.py", line 99, in <listcomp>
    "    (" + override.nix_expression(logger) + ")" for override in common_overrides
  File "/nix/store/iqcjqk0yyhdpkgxdga7sypv4f1jhdy2s-pypi2nix-2.0.4/lib/python3.8/site-packages/pypi2nix/overrides.py", line 115, in nix_expression
    rev=prefetch_data["rev"],
TypeError: 'PrefetchedRepository' object is not subscriptable
@numkem
Copy link

numkem commented Feb 5, 2021

I get the same thing, have you found a way around it?

@Enteee
Copy link
Author

Enteee commented Feb 7, 2021

No, I stopped using this project since it is abandoned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants