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

pyarrow mock gives runtime error when plotting dataframe #662

Closed
andeplane opened this issue Dec 8, 2023 · 5 comments
Closed

pyarrow mock gives runtime error when plotting dataframe #662

andeplane opened this issue Dec 8, 2023 · 5 comments

Comments

@andeplane
Copy link
Contributor

andeplane commented Dec 8, 2023

If I want to do a line chart with data in a pandas dataframe, it crashes with RuntimeError: The pyarrow package must be version 11.0.0 or greater. Found version 0.0.1, see the following example

import streamlit as st
import pandas as pd

data_points = [{'21PT1019.21pt1019_temperature_reading': 50.0}, {'21PT1019.21pt1019_temperature_reading': 35.0}, {'21PT1019.21pt1019_temperature_reading': 20.0}, {'21PT1019.21pt1019_temperature_reading': 40.0}, {'21PT1019.21pt1019_temperature_reading': 10.0}, {'21PT1019.21pt1019_temperature_reading': 80.0}, {'21PT1019.21pt1019_temperature_reading': 25.0}, {'21PT1019.21pt1019_temperature_reading': 65.0}, {'21PT1019.21pt1019_temperature_reading': 34.0}]
dp_df = pd.DataFrame.from_dict(data_points)
st.line_chart(dp_df)

The mocking of pyarrow doesn't seem to work as intended.

@andeplane
Copy link
Contributor Author

Duplicate #656

@andeplane
Copy link
Contributor Author

Seems to work after #663

@whitphx
Copy link
Owner

whitphx commented Dec 26, 2023

This should be fixed with a new release, 0.42.4.
It pins the altair version to <5.2.0 as a workaround.

Plz wait more for a long-term solution fixing the pyarrow mock versioning and allowing altair>=5.2.0 to be installed.

@lukasmasuch
Copy link
Contributor

@whitphx altair>=5.2.0 is also now allowed with the latest version of stlite or?

@whitphx
Copy link
Owner

whitphx commented Feb 6, 2024

Sorry missed this.
Yes, it should be working on the latest stlite, thanks.

@whitphx whitphx closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants