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

Post setup python → Error: unexpected end of JSON input #633

Closed
3 tasks
alunduil opened this issue Mar 26, 2023 · 4 comments
Closed
3 tasks

Post setup python → Error: unexpected end of JSON input #633

alunduil opened this issue Mar 26, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@alunduil
Copy link

Description:

In alunduil/template.py, I have a Publish to PyPi action that consistently fails on the "Post setup python" step. The output is: "Error: Unexpected end of JSON input"

Action version:

actions/setup-python@v4

Platform:

  • [ x ] Ubuntu
  • macOS
  • Windows

Runner type:

  • [ x ] Hosted
  • Self-hosted

Tools version:

poetry 1.4.1
Python 3.10.6

Repro steps:

My workflow file is public and available at https://github.com/alunduil/template.py/actions/runs/4520441086/workflow

Expected behavior:

I expect this step to finish without errors as the workflow is otherwise successful.

Actual behavior:

Erroring in post-processing indicates the run fails when it has already accomplished its goals.

@alunduil alunduil added bug Something isn't working needs triage labels Mar 26, 2023
@e-korolevskii
Copy link
Contributor

Hello @alunduil
Thank you for your report. We'll investigate the issue and get back to you.

@dmitry-shibanov
Copy link
Contributor

Hello @alunduil. Could you please try to specify python-version: "3.10" ?

alunduil added a commit to alunduil/template.py that referenced this issue Mar 28, 2023
As requested in
actions/setup-python#633 (comment), I'm
adding the python version specifier in this workflow.  Hopefully this will
resolve or otherwise change this workflows result.
alunduil added a commit to alunduil/template.py that referenced this issue Mar 28, 2023
As requested in
actions/setup-python#633 (comment), I'm
adding the python version specifier in this workflow.  Hopefully this will
resolve or otherwise change this workflows result.
@alunduil
Copy link
Author

@dmitry-shibanov, it looks like the setting resolves my issue, but I'd prefer to use the defaults: https://github.com/alunduil/template.py/actions/runs/4546269063 .

I just wanted to let you know that I'll leave this here for you to decide if it's worth investing more time in. Thanks for the quick responses!

@dmitry-shibanov
Copy link
Contributor

Hello @alunduil. We released a new version of the action with changes to throw a warning if cache paths can't be found with possible solutions to the error.

For now I'm going to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants