Systems | Development | Analytics | API | Testing

Resolving the Boto3 NoCredentialsError in Python

The NoCredentialsError is an error encountered when using the Boto3 library to interface with Amazon Web Services (AWS). Specifically, this error is encountered when your AWS credentials are missing, invalid, or cannot be located by your Python script. These credentials are stored by default at ~/.aws/credentials which contains your access key and secret access key for using AWS services, along with other configuration details such as your region code.

How to Fix the OperationalError in Python

OperationalError is a class of error encountered while working with the psycopg library in Python. Operational errors are closely linked with the connect method within psycopg and typically occur when parameters passed to this method are incorrect or invalid. This may mean that a parameter, such as a database name, is spelled incorrectly, has changed, or that the database server itself is experiencing a problem.

How to Handle the Psycopg2 UniqueViolation Error in Python

The psycopg2.errors.UniqueViolation is an error thrown by the when a user attempts to insert a duplicate key value. In an SQL or SQL-like database a key value is defined when a table is created. This key value is then used to reference specific rows of the table. In order to make calls to these rows unambiguous, this key value must be unique for every row. Any attempt to insert a new row which has a value in the key field that already exists in the table cannot be completed.

Hello, Spark! An intro to Apache Spark using PySpark in the Cloud

If you’re new to the world of large-scale data analytics, this session is for you! We'll cover the basics of what problems Apache Spark can solve, why and when to use Spark, and how Spark enables efficient use of time and computing hardware. We’ll also demonstrate how easy it is to run a PySpark job in the public cloud using the Data Science Workbench and Cloudera Data Engineering Products.

Building a geocoding plugin for the Kong Gateway using Python

Recently, I came across a request from one of our community users looking for a Kong plugin that could look up address details based on a few location search keywords. There are many libraries that support geocoding. I decided to pick up a Python Library as they are simple to use — and the Kong Gateway supports plugins written in Python since version 2.3.

Overcoming the Top Challenges for Python Beginners

Do you want to learn Python as your first programming language? Then you’ve made a great choice. Python is a popular, general-purpose programming language that can be used for a whole host of applications. But, it’s not without its challenges. To find out more about these challenges and how to overcome them, keep reading …

Local Tests With Selenium And Python Browser Automation

There are various reasons for running Python browser automation tests locally, the most common one for us is saving time. Loadero test runs usually take no more than 5 minutes to initialize and start execution but can reach up to 10 minutes or more depending on how busy is the test run queue. To increase the speed of development, it’s often quicker to create the test script on your local machine and then run tests on Loadero.