Skip to content Skip to sidebar Skip to footer

Cryptography Packafe Installation Error On Google Cloud ML

enter image description here While running a job in google cloud ML, I have included few dependent packages in setup.py . While running the job, it gives the error that cryptograph

Solution 1:

You can configure your setup.py script to run arbitrary commands as part of installing your code; see this SO Question.


Solution 2:

Errors after submitting the setup.py

Please see this link to check the log error file.


Solution 3:

To clarify Jeremy's answer a bit, a few lines after the screen shot, I see the following in the logs:

"Package libffi was not found in the pkg-config search path."

This SO answer indicates that the following needs to be run (based on cryptography's documentation)

apt-get install build-essential libssl-dev libffi-dev python-dev

Jeremy's answer contains a link to an example setup.py that runs apt-get install for python-tk. You should be able to follow the same approach with the following modification:

self.RunCustomCommand(
    ['apt-get', 'install', '-y', 'build-essential',
     'libssl-dev', 'libffi-dev', 'python-dev'])

Post a Comment for "Cryptography Packafe Installation Error On Google Cloud ML"