snok / install-poetry

Github action for installing and configuring Poetry
MIT License
572 stars 53 forks source link

urllib.error.URLError: <urlopen error unknown url type: https> #121

Closed brylie-wolt closed 1 year ago

brylie-wolt commented 1 year ago

When running the install poetry action with Python 3.11, I am getting the following error:

File "/opt/actions-runner/_work/_tool/Python/3.11.3/x64/lib/python3.11/urllib/request.py", line 1419, in unknown_open raise URLError('unknown url type: %s' % type) urllib.error.URLError:

The configured steps are:

steps:
      - name: Check out repository
        uses: actions/checkout@v3
      - name: Set up python
        id: setup-python
        uses: actions/setup-python@v4
        with:
            python-version: '3.11'
      - name: Install Poetry
        uses: snok/install-poetry@v1
        with:
            virtualenvs-create: true
            virtualenvs-in-project: true
            installer-parallel: true
sondrelg commented 1 year ago

I would be surprised if this was related to the action and not a runner issue. Are you running this in a private repo, or is it possible to link to the failing run?

brylie-wolt commented 1 year ago

It's running in a private repo. Is there any further info I can provide to help diagnose the issue?

brylie-wolt commented 1 year ago

I'll try setting runs-on to ubuntu-latest

brylie-wolt commented 1 year ago

Running on ubuntu-latest resolved the issue, so there was something wrong with the runner.