Issue with FontAwesome Icons in Data Docs - Forbidden Access Error

Hello,

I am experiencing an issue with the Data Docs generated by Great Expectations. When the index.html file is generated, the FontAwesome icons for success and failure in the status column do not display. Instead, I receive a “403 Forbidden Access” error for the FontAwesome URL “https://kit.fontawesome.com/8217dffd95.js” .

It appears that the Data Docs HTML is attempting to access FontAwesome icons externally, but this request is being blocked. Is there a recommended way to address this error or are there any configuration settings within Great Expectations that can modify how Data Docs reference external resources like FontAwesome for all the HTML files including index, validations and expectations?

Thank you for your time and assistance.

hello, what version are you on? I believe this was fixed in 1.1.3.

Hello,

Thank you for your response. I am using the 0.13.35 version. I am currently attempting to install Great Expectations version 1.1.3 and 1.2.0 in my environment but encountered an error when I run great_expectations --version.

Environment details:

  • Operating System: Windows 10
  • Python version: [3.9, 3.10, 3.11, 3.12]
  • Package manager: [conda, pip]
  • Virtual environment setup: [using conda virtual environment and pip virtual environment]

Error Details with conda:

-(great_expectations_env) C:\Users\KZ\great_expectations>great_expectations --version

Traceback (most recent call last):
File “C:\Users\ZK\anaconda3\envs\great_expectations_env\Scripts\great_expectations-script.py”, line 5, in
from great_expectations.cli import main
ModuleNotFoundError: No module named ‘great_expectations.cli’

when I run this command it indicates that great expectations is installed:

-(great_expectations_env) C:\Users\ZK\great_expectations>conda list | findstr great-expectations

great-expectations 1.2.0 pyhd8ed1ab_0 conda-forge

Error Details with pip:

‘great_expectations’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

When I execute this command I see it has been installed :

  • pip show great_expectations

Name: great-expectations
Version: 1.2.0
Summary: Always know what to expect from your data.
Home-page: https://greatexpectations.io
Author: The Great Expectations Team
Author-email: team@greatexpectations.io
License: Apache-2.0
Location: C:\Users\ZK\great_expectations\ge_env\Lib\site-packages
Requires: altair, cryptography, jinja2, jsonschema, marshmallow, mistune, numpy, packaging, pandas, posthog, pydantic, pyparsing, python-dateutil, requests, ruamel.yaml, scipy, tqdm, typing-extensions, tzlocal
Required-by:

I have also tried the following troubleshooting steps:

  • Updating pip/conda and trying a different environment
  • Restart the PC

Despite these efforts, the issue persists. Could you provide any insights or guidance on how to resolve this?

NB:This issue arises only when I attempt to install Great Expectations version 1.x (specifically version 1.0, 1.1.3, 1.1.2, 1.2.0). I have successfully installed other versions (e.g., 0.13.x, 0.17, 0) without any issues, but installing any 1.x version consistently results in this error.

Thank you for your support

The CLI is no longer supported, so the --version command won’t work. To specify a version, you can use pip install great_expectations==1.2.1. Then, in your script, add print("GX Version:", gx.__version__) to confirm the installed version.

Hello,
Thank you for your support, my project depends on the CLI in Great Expectations to configure datasources, checkpoints, expectations, and documentation, as it streamlines the setup and management of these components through YAML files. I’ve been using version 0.13.35 specifically for this purpose. However, I’m encountering an issue with icons not displaying properly, which I understand is addressed in later versions. If there’s a solution that maintains CLI support while resolving the icon issue, I’d be interested in exploring it. Alternatively, if you have guidance on integrating CLI-like commands in newer setups, that would also help. Alternatively, how can I use version 1.2.1 without the CLI to run my existing checkpoints, expectations, and build the documentation?

Thank you in advance

You can change the script tag in

great_expectations/render/view/templates/js_script_imports.j2

from

<script src="https://kit.fontawesome.com/8217dffd95.js"></script>

to

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">

in order to use the new kit to fix the icons issues in prior versions

Regarding your other questions: Migration guide