1. Disk Space
Users must ensure that the disk has sufficient free space for the export process to complete successfully.
2. Network and System Stability
Users must ensure there are no network interruptions during the migration. They should also ensure their machine does not go to sleep, as the script will terminate if the system enters sleep mode.
3. Python Installation and Setup
Python version 3 or above is strongly recommended to avoid errors. Users can install Python using the following links: MacOS and Windows. For step-by-step instructions on how to install Python, you can refer to this link.
To verify the installation, run:
python3 --version
4. pip
https://pip.pypa.io/en/stable/installation/
To verify pip installation, run:
pip3 --version (or) python3 -m pip --version
5. Prerequisite
import importlib
def check_module(module_name):
try:
module = importlib.import_module(module_name)
print(f"{module_name} module is installed")
except ModuleNotFoundError:
print(f"{module_name} module is not installed")
print()
#List of modules to check
modules_to_check = ['os', 'urllib', 'ssl', 'certifi', 'requests', 'json', 'logging', 'queue', 'threading']
#Check each module
for module_name in modules_to_check:
check_module(module_name)
6. No module error
7. If pip3 install does not work, users should use: python3 -m pip install <module_name>
8. Required Python dependencies such as requests and certification must also be installed.
On the Data export page, click the Set up new export button.
Enter the details for your export, such as the name of your export and the specific data you want to export, then click Start export.
The export process will be completed, at which point you can download the export file.
To download the export file, click Actions and select View Archive. This opens the cloud storage
Browse for the 'Customer owned data' node and download each takeout file zip individually, saving them to a folder on your desktop. You can name the folder 'Google chat export' for easy reference.

Note: If your organization has FedRAMP Authorization or more than 1,000 users, contact Google Workspace support before using the Data Export tool.

Limitations in Google Chat Import
Certain items shared directly from Google services like Drive and Calendar cannot be imported, as Google does not provide public URLs for them.
Assigned tasks cannot be migrated.
Only chats, conversations, and shared files will be imported.
Open Launchpad and type "Terminal."
In the terminal, navigate to the directory where the Python file is saved. For example, cd ~/Desktop/
In the next line, type "python3 googlechatexport.py".
Click Enter to run the script.
Click Enter to run the script.

Note: Importing data more than once can result in data duplication, which may be difficult to clean up. Please ensure that data is imported only once to avoid complications.
For any Python-related issues after the migration is initiated, users must share the demo.log file for debugging. This will help reduce back-and-forth communication.
Users must provide valid inputs and scripts. If migrating using Python and running the migration a second time, users must generate a new script from the admin panel and must not reuse an existing script.
