-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
st.line_chart don't work in stlite/desktop #656
Comments
Seems like |
@lukasmasuch any ideas how we can deal with this in stlite? We may have to wait for pyarrow support in pyodide which seems to have had ok progress over the past months. |
This should be fixed with a new release, 0.42.4. Plz wait more for a long-term solution fixing the pyarrow mock versioning and allowing altair>=5.2.0 to be installed. |
I added this monkey patching to def _fix_altair():
"""Fix an issue with Altair and the mocked pyarrow module of stlite."""
try:
from altair.utils import _importers
def _pyarrow_available():
return False
_importers.pyarrow_available = _pyarrow_available
def _import_pyarrow_interchange():
raise ImportError("Pyarrow is not available in stlite.")
_importers.import_pyarrow_interchange = _import_pyarrow_interchange
except:
pass But I think a better solution might be that this import |
This should be fixed in the latest version. |
This issue seems to be caused by the Altair package updating its dependency on pyarrow, which was not the case before. It seems that pyarrow cannot be installed on pyodide. The error is as follows:
Altair updated to version 5.2.0 a few days ago, and I am unable to specify the Altair version via requirements. txt. It seems that the latest version was already installed when installing the streamlit dependency.
The text was updated successfully, but these errors were encountered: