Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 19930: character maps to <undefined> #472

Open
jarek7777 opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jarek7777
Copy link

Expected Behavior

Windows PL, Python cannon generte chasrt. I think ther is something with charset?

Programs\Python\Python312\Lib\encodings\cp1250.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]

Current Behaviour

no able to display chart

Reproducible Example

# Simple chart form MetaTrader5

def display_chart(rolling_window):
    chart = StreamlitChart(width=1200, height=600)
    chart.legend(visible=True)

    df = rolling_window.copy()
    df.rename(columns={'time': 'time', 'Close': 'close', 'Open': 'open', 'High': 'high', 'Low': 'low'}, inplace=True)

    df['time'] = pd.to_datetime(df['time'], unit='s')

    chart.set(df)

    chart.load()

Environment

- OS: Windows 11 PL
- Library: 2.1
@jarek7777 jarek7777 added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant