Troubleshooting: Memory error while running python SDK script

The Symptom

Working with big data structures in Python can sometimes lead to a memory error while using the python SDK package.

The error may look like the following:

{'errorMessage': '', 'errorType': 'MemoryError'}

Steps to Troubleshoot

Check if you are using Python 32 bits - you can check this by running the following command on your local machine:

python3 -c "import sys; print(sys.maxsize > 2**32)

The command will return True if Python is running in 64-bit and False if it's running in 32-bit.

Solution

The issue can be solved by using python 64 bits.