Issue

While performing actions using Panther Analysis Tool such as panther_analysis_tool upload, the following error occurs:

ImportError: cannot import name 'Final' from 'typing' (/usr/local/lib/python3.7/typing.py)

Resolution

To resolve this issue, update your Python to a version that includes the typing.Final class (introduced after Python version 3.8).

Cause

The latest Panther Analysis Tool version includes the typing.Final class which is not supported in Python 3.7. This class was introduced after Python version 3.8.