Read and Update Google Sheet data with Python

In this example we will use python to read data from Google Sheets and update another one using the Google API. Enable the Google API Navigate to Log in with your Google account Click the Create Project link Enter a project name, you can have 12 free project. Click the API panel Click the […]

Blue-green deployment in AWS ECS Fargate with CodeDeploy

We will use CodeDeploy to automate the application deployment in our AWS ECS Fargate cluster. Create an AIM role for CodeDeploy to assume the ECS service role In the AWS console navigate IAM and click the Roles link Click the Create role button Click the CodeDeploy link Select CodeDeploy ECS Keep the default setting Enter […]

PyCharm configuration

When you install PyCharm, the default Python interpreter is may not the version you want to use for your new projects. When you create a new project, and the project interpreter is not set, you may get the following error message: Executed command: /var/folders/_x/_f0zzs1s4sx6bk4s8n78l2jsbn9r3z/T/tmpBoQLx_pycharm-management/pip-9.0.1/ install Error occurred: 40:357: execution error: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/ UserWarning: Unknown distribution option: […]

Python ImportError: No module named …

Symptom: from MY_FOLDER.MY_FILE import MY_CLASS causes an error: ImportError: No module named MY_FOLDER.MY_FILE Debugging: Execute the program in debug mode, In the Variables window expand Special Variables, Read the __warningregistry__ value. Possible cause: The file is missing in the directory of the referenced class. Solution: Create an empty file in the directory where the class is referenced […]