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

GitHub Actions errors out with an error irrelevant to my code #459

Closed
hrshdhgd opened this issue Nov 8, 2021 · 2 comments
Closed

GitHub Actions errors out with an error irrelevant to my code #459

hrshdhgd opened this issue Nov 8, 2021 · 2 comments
Labels
bug Something that should work but isn't, with an example and a test case.

Comments

@hrshdhgd
Copy link
Collaborator

hrshdhgd commented Nov 8, 2021

Describe the bug
I'm working on a branch and GitHub action is erroring out saying

File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1247, in do_init
43
    do_lock(
44
  File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1030, in do_lock
45
    dev_packages = project.dev_packages.copy()
46
  File "/usr/local/lib/python3.8/dist-packages/pipenv/project.py", line 696, in dev_packages
47
    return self._build_package_list("dev-packages")
48
  File "/usr/local/lib/python3.8/dist-packages/pipenv/project.py", line 188, in _build_package_list
49
    or any(is_installable_file(i) for i in [k, v])
50
  File "/usr/local/lib/python3.8/dist-packages/pipenv/project.py", line 188, in <genexpr>
51
    or any(is_installable_file(i) for i in [k, v])
52
  File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1512, in is_installable_file
53
    from .patched.notpip._internal.utils.packaging import specifiers
54
  File "/usr/local/lib/python3.8/dist-packages/pipenv/patched/notpip/_internal/utils/packaging.py", line 10, in <module>
55
    from pipenv.patched.notpip._internal.exceptions import NoneMetadataError
56
  File "/usr/local/lib/python3.8/dist-packages/pipenv/patched/notpip/_internal/exceptions.py", line 8, in <module>
57
    from pipenv.patched.notpip._vendor.requests.models import Request, Response
58
  File "/usr/local/lib/python3.8/dist-packages/pipenv/patched/notpip/_vendor/requests/__init__.py", line 135, in <module>
59
    from . import utils
60
  File "/usr/local/lib/python3.8/dist-packages/pipenv/patched/notpip/_vendor/requests/utils.py", line 41, in <module>
61
    DEFAULT_CA_BUNDLE_PATH = certs.where()
62
  File "/usr/local/lib/python3.8/dist-packages/pipenv/patched/notpip/_vendor/certifi/core.py", line 51, in where
63
    _CACERT_PATH = str(_CACERT_CTX.__enter__())
64
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
65
    return next(self.gen)
66
  File "/usr/lib/python3.8/importlib/resources.py", line 184, in path
67
    package = _get_package(package)
68
  File "/usr/lib/python3.8/importlib/resources.py", line 47, in _get_package
69
    module = import_module(package)
70
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
71
    return _bootstrap._gcd_import(name[level:], package, level)
72
ModuleNotFoundError: No module named 'pip._vendor.certifi'

I think it is relevant to pipenv but I'm not sure. I don't use pipenv for my development.

Here's my PR.

Screenshots
Screen Shot 2021-11-08 at 3 58 55 PM

Attached

@hrshdhgd hrshdhgd added the bug Something that should work but isn't, with an example and a test case. label Nov 8, 2021
@sujaypatil96
Copy link
Member

I'm experiencing the same issue in this Action for my PR too @hrshdhgd. Will need to look into what's causing the error.

@sujaypatil96
Copy link
Member

Looks like it was a pipenv issue as noted here, which has been fixed in the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that should work but isn't, with an example and a test case.
Projects
None yet
Development

No branches or pull requests

2 participants