Skip to content

SSL Certificate Problem on MacOS | Action and log #1483

@onuratakan

Description

@onuratakan
2022-08-01T11:37:43.0997430Z [DEBUG   ] Processing dependencies for Flask==2.0.0
2022-08-01T11:37:43.1046970Z [DEBUG   ] Searching for itsdangerous>=2.0
2022-08-01T11:37:43.1051680Z [DEBUG   ] Reading https://pypi.org/simple/itsdangerous/
2022-08-01T11:37:43.1232400Z [DEBUG   ] Download error on https://pypi.org/simple/itsdangerous/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129) -- Some packages may not be found!
2022-08-01T11:37:43.1234260Z [DEBUG   ] Couldn't retrieve index page for 'itsdangerous'
2022-08-01T11:37:43.1235600Z [DEBUG   ] Scanning index of all packages (this may take a while)
2022-08-01T11:37:43.1236560Z [DEBUG   ] Reading https://pypi.org/simple/
2022-08-01T11:37:43.1291760Z [DEBUG   ] Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129) -- Some packages may not be found!
2022-08-01T11:37:43.1294990Z [DEBUG   ] No local packages or working download links found for itsdangerous>=2.0
2022-08-01T11:37:43.1295760Z [DEBUG   ] error: Could not find suitable distribution for Requirement.parse('itsdangerous>=2.0')
2022-08-01T11:37:43.1750600Z Exception in thread background thread for pid 50622:
  build-api-ios:
    runs-on: macos-latest
    environment: Builds       
    strategy:
      matrix:
        python-version: [3.8]
    steps:
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}

      - uses: actions/checkout@v2
      - name: Setup environment
        run: |
          source .ci/osx_ci.sh
          arm64_set_path_and_python_version ${{ matrix.python }}
          pip install -e .
          pip install Cython cookiecutter pbxproj buildozer==1.4.0
      - name: Check buildozer installation
        run: |
          source .ci/osx_ci.sh
          arm64_set_path_and_python_version ${{ matrix.python }}
          buildozer --help
      - name: Initialize buildozer in project folder
        run: |
          source .ci/osx_ci.sh
          arm64_set_path_and_python_version ${{ matrix.python }}
      - name: Install dependencies
        run: |
          source .ci/osx_ci.sh
          arm64_set_path_and_python_version ${{ matrix.python }}
          brew install autoconf automake libtool pkg-config
      - name: Get Date
        id: get-date
        run: |
          echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
        shell: bash

      - name: Cache Buildozer global directory
        uses: actions/cache@v2
        with:
          path: .buildozer_global
          key: buildozer-global-${{ hashFiles('buildozer.spec') }} # Replace with your path

      - uses: actions/cache@v2
        with:
          path: .buildozer
          key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('buildozer.spec') }}
        
      - name: buildozer ios debug
        run: |
          source .ci/osx_ci.sh
          arm64_set_path_and_python_version ${{ matrix.python }}
          buildozer --profile api ios debug
      - name: Zip
        run: sudo zip -r api_ios_${{ github.event.release.tag_name }} bin/
        

      - name: Upload artifacts
        uses: actions/upload-artifact@v2
        with:
          path: api_ios_${{ github.event.release.tag_name }}.zip

      - uses: AButler/[email protected]
        if: github.event_name == 'release'
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}        
          files: 'api_ios_${{ github.event.release.tag_name }}.zip'

Originally posted by @onuratakan in #1480 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions