BirdiD / BirdiDQ

BirdiDQ leverages the power of the Python Great Expectations open-source library and combines it with the simplicity of natural language queries to effortlessly identify and report data quality issues, all at the tip of your fingers.
Apache License 2.0
15 stars 2 forks source link

Running the app in Windows systems returns an UnicodeDecodeError #9

Closed elsatch closed 1 year ago

elsatch commented 1 year ago

Describe the bug

Trying to run the code locally in a Windows system returns a UnicodeDecodeError when loading the sidebar.

Traceback (most recent call last):
  File "C:\Users\Mi PC\dev\BirdiDQ\venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "C:\Users\Mi PC\dev\BirdiDQ\main_birdi\app.py", line 21, in <module>
    sidebar_content = sidebar_file.read()
  File "C:\Program Files\Python310\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 11: character maps to <undefined>

This problem might be related to the emojis that appear on the sidebar titles.

To Reproduce

Run the command locally in Windows:

streamlit run main_birdi/app.py

Expected behaviour

Running the command would run the application locally without any problem.

Environment (please complete the following information): Operating system: Windows 10 Great Expectations Version: 0.17.3 Datasource: None Cloud environment: None