Polars and open *.feather

Hi everyone !
I need to open and use *.feather with Polars (analog Pandas), but doesn’t work it.
My code

import streamlit as st
import polars as pl
import numpy as np
import os
import joblib

st.title('Preved')
uploaded_file = st.file_uploader('give me the file here')

if uploaded_file is not None:
    orders = pl.read_ipc(uploaded_file, use_pyarrow = True)
    st.header('tail of data')
    st.write(orders.head())

and I get error:

AxiosError: Request failed with status code 403

Versions:
streamlit==1.30.0
polars==0.19.13

Hi

The file you are trying to upload (uploaded_file) is a valid Feather file?
Make sure you have the necessary permissions to access the file.

(AxiosError: Request failed with status code 403) is an HTTP status code indicating that the server understood the request, but it refuses to authorize it.

1 Like

It works now. I find topic with the same problem, delete streamlit==1.30.0 and install streamlit==1.29.0.

All work! Thanks for the help )

you can see this thread, it solves the problem for version 1.30, update pip install -U tornado

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.