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

GH Action fails to get requirements to build wheel #25

Open
TheNewThinkTank opened this issue Jul 17, 2023 · 9 comments
Open

GH Action fails to get requirements to build wheel #25

TheNewThinkTank opened this issue Jul 17, 2023 · 9 comments

Comments

@TheNewThinkTank
Copy link

Hi,
Facing issue: error: subprocess-exited-with-error:
https://github.com/TheNewThinkTank/fitness-tracker/actions/runs/5577580966/jobs/10190537987

This happens in the GitHub Actions workflow, inside the Docker container,
right after collecting pyyaml and downloading PyYAML-6.0.tar.gz

@gespi1
Copy link

gespi1 commented Jul 17, 2023

getting the same issue

@bradleydamato
Copy link

Also seeing this.

@rtrigo-opengov
Copy link

another one

@NickAdolf
Copy link

I've forked, tried newer versions of Alpine as well as added an explicit pip install wheel , all with no luck.

@NickAdolf
Copy link

yaml/pyyaml#601

@NickAdolf
Copy link

was able to get this working in my fork by pinning to PyYaml 5.3.1.


# hadolint ignore=DL3018
RUN apk add --update --no-cache bash ca-certificates curl git jq openssh

# hadolint ignore=DL3013
RUN pip install 'pyyaml==5.3.1' && \
    pip install wheel && \
    pip install yamllint```

@thearavindhs-dev
Copy link

Option 1: Install yamllint using the package manager
RUN apk add --update --no-cache bash ca-certificates curl git jq openssh yamllint

yamllint --version returns 1.31.0
Note: The current version available at the time is 1.32.0.

Option 2: Install a latestversion of yamllint 1.32.0 in our case - we would have to come here to update
RUN apk add --update --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community yamllint=1.32.0-r0

Option 3: Use a workaround to install pyyaml - yaml/pyyaml#724 (comment)
This involves installing an older version of Cython and a specific version of PyYAML.

RUN pip install "cython<3.0.0" && pip install --no-build-isolation pyyaml==6.0
RUN pip install yamllint

@NickAdolf
Copy link

I have a PR Open for config that worked for me, but the other path may be preferred?

#27

@TheNewThinkTank
Copy link
Author

As suggested by @rtrox , I switched to https://github.com/ibiqlik/action-yamllint for now, it solves my issue and has very similar usage as https://github.com/karancode/yamllint-github-action . Here is the successfull run: https://github.com/TheNewThinkTank/fitness-tracker/actions/runs/5585083861/jobs/10207344789 Just had to change minor detail (yaml path name, from yamllint_file_or_dir to file_or_dir):

- name: yamllint workout_programs
        # uses: karancode/yamllint-github-action@master
        uses: ibiqlik/action-yamllint@v3
        with:
          # yamllint_file_or_dir: "./workout_programs.yml"
          file_or_dir: "./workout_programs.yml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants