Thanks @mahmutc for sharing. I actually had figured out the problem. The deploy() method call was trying to find a file named .sagemaker-code-config throughout my filesystem. All I did was to create the same file in the cwd and it was resolved.
1 Like