bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

SSLError #346

Open c-w-m opened 1 year ago

c-w-m commented 1 year ago

Behavior:

  1. behind company proxy
  2. command

    pipreqs --force <module_path

  3. response ... File "pipreqs.py", line 179, in get_imports_info response = requests.get( ... raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: ...

This may also be related to:


Fix Proposal:

I've made this change in my fork under branch 'fix_SSLError' and it works for my use case