You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I attempt to run grayskull on one of my public repositories I receive an SSL_CERTIFICATE_VERIFY_FAILED error.
Steps to reproduce the behavior:
Install grayskull in a python 3.11 environment
run grayskull pypi https://github.com/kbonney/dnd-roller.git.
Expected behavior
I expect grayskull to run to completion and generate the config. Outputs
If applicable, add the output to help explain your problem.
Full stack trace:
(dnd) klbonne@s1096891 ~/repos/CondaPkgTutorial/grayskull $ grayskull pypi https://github.com/kbonney/dnd-roller.git
#### Initializing recipe for https://github.com/kbonney/dnd-roller.git ####
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/kbonney/dnd-roller/releases/latest (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/klbonne/.pyenv/versions/dnd/bin/grayskull", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/main.py", line 277, in main
generate_recipes_from_list(args.pypi_packages, args)
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/main.py", line 300, in generate_recipes_from_list
recipe, config = create_python_recipe(
^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/main.py", line 335, in create_python_recipe
GrayskullFactory.create_recipe(
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/base/factory.py", line 46, in create_recipe
GrayskullFactory.REGISTERED_STRATEGY[repo_type.lower()].fetch_data(
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/strategy/pypi.py", line 62, in fetch_data
update_recipe(recipe, config, sections or ALL_SECTIONS)
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/strategy/pypi.py", line 499, in update_recipe
metadata = get_metadata(recipe, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/strategy/pypi.py", line 350, in get_metadata
sdist_metadata, pypi_metadata = get_origin_wise_metadata(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/strategy/pypi.py", line 218, in get_origin_wise_metadata
version, version_tag = handle_gh_version(
^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/base/github.py", line 109, in handle_gh_version
version_tag = get_latest_version_of_github_repo(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/base/github.py", line 60, in get_latest_version_of_github_repo
return fetch_latest_metadata_from_github_repo(git_url)["tag_name"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/grayskull/base/github.py", line 21, in fetch_latest_metadata_from_github_repo
response = requests.get(api_url)
^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/klbonne/.pyenv/versions/3.11.5/envs/dnd/lib/python3.11/site-packages/requests/adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/kbonney/dnd-roller/releases/latest (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
Additional context
I use corporate certs which are properly configured to work with conda and pip. I haven't seen any options to configure this for grayskull, but maybe I missed something. I am wondering if grayskull is set up to use system certs or if this is a pending feature.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I attempt to run grayskull on one of my public repositories I receive an SSL_CERTIFICATE_VERIFY_FAILED error.
Steps to reproduce the behavior:
grayskull pypi https://github.com/kbonney/dnd-roller.git
.Expected behavior
I expect grayskull to run to completion and generate the config.
Outputs
If applicable, add the output to help explain your problem.
Full stack trace:
Environment:
Additional context
I use corporate certs which are properly configured to work with conda and pip. I haven't seen any options to configure this for grayskull, but maybe I missed something. I am wondering if grayskull is set up to use system certs or if this is a pending feature.
The text was updated successfully, but these errors were encountered: