Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级 pip 到 22.3 后出错 #73

Open
hongqn opened this issue Dec 7, 2022 · 1 comment
Open

升级 pip 到 22.3 后出错 #73

hongqn opened this issue Dec 7, 2022 · 1 comment

Comments

@hongqn
Copy link
Collaborator

hongqn commented Dec 7, 2022

升级 pip 到 22.3 后,运行 lain 出错。降级到 22.2.2 后正常。

❯ lain init
not in a lain app repo
please use --commit, otherwise you'll have to git add / commit by hand
lain lint --simple
Traceback (most recent call last):
  File "/Users/hongqn/.virtualenvs/lain-cli/bin/lain", line 8, in <module>
    sys.exit(main())
  File "/Users/hongqn/p/lain-cli/lain_cli/lain.py", line 2433, in main
    lain(obj={})
  File "/Users/hongqn/.virtualenvs/lain-cli/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/hongqn/.virtualenvs/lain-cli/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/hongqn/.virtualenvs/lain-cli/lib/python3.10/site-packages/click/core.py", line 1654, in invoke
    super().invoke(ctx)
  File "/Users/hongqn/.virtualenvs/lain-cli/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/hongqn/.virtualenvs/lain-cli/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/hongqn/.virtualenvs/lain-cli/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/hongqn/p/lain-cli/lain_cli/lain.py", line 187, in lain
    version_challenge()
  File "/Users/hongqn/p/lain-cli/lain_cli/utils.py", line 2856, in version_challenge
    search_scope = SearchScope.create(find_links=[], index_urls=[pypi_index])
TypeError: SearchScope.create() missing 1 required positional argument: 'no_index'
@Linusp
Copy link

Linusp commented Mar 20, 2023

我也遇到了 😂

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

No branches or pull requests

2 participants