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

Pipfileでのoletoolsの参照が404エラーになった #8

Closed
yuichi-github opened this issue Jun 26, 2024 · 1 comment · Fixed by #9
Closed

Pipfileでのoletoolsの参照が404エラーになった #8

yuichi-github opened this issue Jun 26, 2024 · 1 comment · Fixed by #9

Comments

@yuichi-github
Copy link

oletools = {file = "https://github.com/kijeong/oletools/archive/refs/heads/add/projectcompatversion_record.zip"}
を原因として pipenv install でエラーが発生するようになりました。

該当エラーログ
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Building requirements...
CRITICAL:pipenv.patched.pip._internal.network.download:HTTP error 404 while getting https://github.com/kijeong/oletools/archive/refs/heads/add/projectcompatversion_record.zip#egg=oletools
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.14/x64/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/cli/options.py", line 58, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/cli/command.py", line 233, in install
    do_install(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/routines/install.py", line 170, in do_install
    do_init(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/routines/install.py", line 768, in do_init
    do_lock(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/routines/lock.py", line 65, in do_lock
    venv_resolve_deps(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 1057, in venv_resolve_deps
    deps = convert_deps_to_pip(deps, project, include_index=True)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/utils/dependencies.py", line 279, in convert_deps_to_pip
    req = new_dep.as_line(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2587, in as_line
    assert self.line_instance is not None
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2399, in line_instance
    return self.get_line_instance()
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2363, in get_line_instance
    version, fetched = self.get_version_from_setup_info()
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2750, in get_version_from_setup_info
    self.req.parse_setup_info()
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1571, in parse_setup_info
    self.setup_info = SetupInfo.from_ireq(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1697, in from_ireq
    unpack_url(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1837, in unpack_url
    file = get_http_url(
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1802, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/patched/pip/_internal/network/download.py", line 134, in __call__
    resp = _http_get_download(self._session, link)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/patched/pip/_internal/network/download.py", line 118, in _http_get_download
    raise_for_status(resp)
  File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pipenv/patched/pip/_internal/network/utils.py", line 54, in raise_for_status
    raise NetworkConnectionError(http_error_msg, response=resp)
pipenv.patched.pip._internal.exceptions.NetworkConnectionError: 404 Client Error: Not Found for url: https://codeload.github.com/kijeong/oletools/zip/refs/heads/add/projectcompatversion_record
Error: Process completed with exit code 1.

代替として以下のようにすることで問題を回避しています。
oletools = {file = "https://github.com/kijeong/oletools/archive/refs/heads/master.zip"}

@takeruko takeruko linked a pull request Jun 26, 2024 that will close this issue
@takeruko
Copy link
Owner

@yuichi-github さん、ご報告ありがとうございます。
ご教示いただいたPipfileの変更を反映させました。

原因は、Pipfileから参照していたoletoolsのforkのブランチが数日前に削除されてしまったみたい。
本家へのPull requestがMergeされた後、Unitテストに失敗することが判明したようで、そのゴタゴタでブランチも削除しちゃった模様。

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

Successfully merging a pull request may close this issue.

2 participants