I have Azure Automation with Python Environment, but cannot install cffi module.

Dariusz Kmiecik 20 Reputation points
2024-12-10T08:45:59.4533333+00:00

I try to run python script in Azure Automation, but have such error:

The job failed because it could not install cffi python package imported in automation account. Error: ERROR: cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.whl is not a supported wheel on this platform.

I'm using python environment with Python 3.10. What version of cffi can I use?

Where can I find list of working packages with Azure Automation?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,279 questions
0 comments No comments
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 47,916 Reputation points Microsoft Employee
    2024-12-10T10:14:02.2433333+00:00

    @Dariusz Kmiecik Greetings!

    Short answer: Do not use cp313, use cp310.

    In the document it is mentioned that you use below format files for Python 3.10. However t seems you are using "cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64" which is cp313 so it won't work.

    User's image

    Please use correct file which is present here: cffi · PyPI 

    User's image

    You can refer to this document for Python packages in Azure Automation - https://learn.microsoft.com/en-us/azure/automation/python-3-packages?tabs=py3%2Csa-mi

    FYI:
    User's image

    Hope this helps. Please let us know if you need further help on this.


    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.