Skip to content

Conversation

@ningyougang
Copy link
Contributor

@ningyougang ningyougang commented Aug 9, 2022

  • Fix setup.py install is deprecated in python3.10

I tested current master's python3.10 iamge in my local, when invoked action with python3.10 image, the /init step failed, the action container's logs as below

[root@nccddev130026 32d8fd9bd1fa4319bba6b5436cfc885453adfcc3d20a70484638bc4a50028281]# docker logs 041bcd5d0e9b
/usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(

XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX
XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX

Activation logs as below

    "logs": [
        "2022-08-09T03:20:33.047906766Z stderr: /usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.",
        "2022-08-09T03:20:33.047948564Z stderr:   warnings.warn(",
        "2022-08-09T03:20:33.047963151Z stderr: ",
        "2022-08-09T03:20:33.050624Z    stderr: The action did not initialize or run as expected. Log data might be missing."
    ],

This pr fixed it.(after applied this pr in my local, can invoke python3.10 action successfully)

@ningyougang ningyougang force-pushed the fix-python310-error branch from a70a3c5 to 495b777 Compare August 9, 2022 05:22
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

Successfully merging this pull request may close these issues.

2 participants