'Google Cloud Function not deploying on GCP Cloud functions - Function failed on loading user code

I have my python code that works fine on my machine. However, when deploying it on GCP with the correct requirements it is not deploying as it should. I have resolved all error and now i am just left with the below error

enter image description here

enter image description here

I've not seen this error and cant seem to solve it - has anyone else seen this error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source