I am getting below errors : script name = prepareIncidentCountMail.py
Traceback (most recent call last): File "Alexa\prepareIncidentCountMail.py", line 52, in <module> File "site-packages\pandas\core\frame.py", line 683, in style File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "c:\users\avikumar\documents\learn\alexa\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "site-packages\pandas\io\formats\style.py", line 50, in <module> File "site-packages\pandas\io\formats\style.py", line 118, in Styler File "site-packages\jinja2\environment.py", line 830, in get_template File "site-packages\jinja2\environment.py", line 804, in _load_template File "site-packages\jinja2\loaders.py", line 113, in load File "site-packages\jinja2\loaders.py", line 234, in get_source File "site-packages\pkg_resources\__init__.py", line 1459, in has_resource File "site-packages\pkg_resources\__init__.py", line 1509, in _has NotImplementedError: Can't perform this operation for unregistered loader type [10536] Failed to execute script prepareIncidentCountMail I am using pandas style with the help of link : Change color of complete row in data frame in pandas
I see style is using jinja2 causing the above error. Is there any way to hook this error or any other tool to convert python script into single executable.