Hi, I am trying to get export some results from Arize into a notebook, but am getting this error after pasting in the "Export to Notebook" code chunk into my jupyter notebook:
#### Exporting your primary dataset into a dataframe.
arize.utils.logging | ERROR | There was an error trying to get the data from the endpoint
---------------------------------------------------------------------------
FlightUnavailableError Traceback (most recent call last)
Cell In[12], line 3
1 print('#### Exporting your primary dataset into a dataframe.')
----> 3 primary_df = client.export_model_to_df(
4 space_id='U3BhY2U6MjA5',
5 model_id='kitchen-production-dlps-2-forecasting-prod-backtest',
6 environment=Environments.PRODUCTION,
7 start_time=datetime.fromisoformat('2022-02-01T05:00:00.000+00:00'),
8 end_time=datetime.fromisoformat('2022-02-02T04:59:59.999+00:00'),
9 model_version='core_dec18_run_for_2022'
10 )
File c:\AppInstall\Miniconda3\envs\test\lib\site-packages\arize\exporter\core\client.py:113, in ArizeExportClient.export_model_to_df(self, space_id, model_id, environment, start_time, end_time, include_actuals, model_version, batch_id, where)
69 def export_model_to_df(
70 self,
71 space_id: str,
(...)
79 where: Optional[str] = None,
80 ) -> pd.DataFrame:
81 """
82 Exports data of a specific model in the Arize platform to a pandas dataframe for a defined
83 time interval and model environment, optionally by model version and/or batch id.
(...)
111 A pandas dataframe
...
File c:\AppInstall\Miniconda3\envs\test\lib\site-packages\pyarrow\_flight.pyx:1353, in pyarrow._flight.FlightClient.get_flight_info()
File c:\AppInstall\Miniconda3\envs\test\lib\site-packages\pyarrow\_flight.pyx:69, in pyarrow._flight.check_flight_status()
FlightUnavailableError: gRPC returned unavailable error, with message: Empty updateHi Landon! Thanks for posting and apologies for the issue with exporting data from the platform. We鈥檒l investigate this and let you know once we track down what the issue is.
Is this snippet the exact one produced by the platform when you click to export? If so, it may be an issue on our side. Without looking at it yet, I鈥檇 say it could be an issue with time range, but that鈥檚 just a guess or possibly a typo in one of the values if you had changed any of the values from what was produced in the platform.
I just tried it again to make sure I didn't change anything on accident. This is the output when I selected the export button after selecting the following under the performance tracking section: ERROR MESSAGE:
#### Installing arize SDK
Looking in indexes:
### arize SDK installed!
arize.utils.logging | INFO | Creating named session as 'python-sdk-arize_python_export_client-f809b91e-1c42-43f1-b1a9-2ab2ecd6486d'.
Requirement already satisfied: arize>=7.1.0 in c:\appinstall\miniconda3\lib\site-packages (7.8.1)
Requirement already satisfied: requests-futures==1.0.0 in c:\appinstall\miniconda3\lib\site-packages (from arize>=7.1.0) (1.0.0)
Requirement already satisfied: protobuf<5,>=3.12 in c:\appinstall\miniconda3\lib\site-packages (from arize>=7.1.0) (3.20.3)
Requirement already satisfied: tqdm<5,>=4.60.0 in c:\appinstall\miniconda3\lib\site-packages (from arize>=7.1.0) (4.65.0)
Requirement already satisfied: googleapis-common-protos~=1.51 in c:\appinstall\miniconda3\lib\site-packages (from arize>=7.1.0) (1.59.1)
Requirement already satisfied: pandas<3,>=0.25.3 in c:\appinstall\miniconda3\lib\site-packages (from arize>=7.1.0) (1.5.3)
Requirement already satisfied: pyarrow>=0.15.0 in c:\appinstall\miniconda3\lib\site-packages (from arize>=7.1.0) (6.0.1)
Requirement already satisfied: requests>=1.2.0 in c:\appinstall\miniconda3\lib\site-packages (from requests-futures==1.0.0->arize>=7.1.0) (2.31.0)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\appinstall\miniconda3\lib\site-packages (from pandas<3,>=0.25.3->arize>=7.1.0) (2.8.2)
Requirement already satisfied: numpy>=1.20.3 in c:\appinstall\miniconda3\lib\site-packages (from pandas<3,>=0.25.3->arize>=7.1.0) (1.20.3)
Requirement already satisfied: pytz>=2020.1 in c:\appinstall\miniconda3\lib\site-packages (from pandas<3,>=0.25.3->arize>=7.1.0) (2022.7.1)
Requirement already satisfied: six>=1.5 in c:\appinstall\miniconda3\lib\site-packages (from python-dateutil>=2.8.1->pandas<3,>=0.25.3->arize>=7.1.0) (1.16.0)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\appinstall\miniconda3\lib\site-packages (from requests>=1.2.0->requests-futures==1.0.0->arize>=7.1.0) (1.26.8)
Requirement already satisfied: idna<4,>=2.5 in c:\appinstall\miniconda3\lib\site-packages (from requests>=1.2.0->requests-futures==1.0.0->arize>=7.1.0) (3.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\appinstall\miniconda3\lib\site-packages (from requests>=1.2.0->requests-futures==1.0.0->arize>=7.1.0) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\appinstall\miniconda3\lib\site-packages (from requests>=1.2.0->requests-futures==1.0.0->arize>=7.1.0) (2023.5.7)
Requirement already satisfied: colorama in c:\appinstall\miniconda3\lib\site-packages (from tqdm<5,>=4.60.0->arize>=7.1.0) (0.4.4)
#### Exporting your primary dataset into a dataframe.
arize.utils.logging | ERROR | There was an error trying to get the data from the endpoint
---------------------------------------------------------------------------
FlightUnavailableError Traceback (most recent call last)
Cell In[2], line 22
18 client = ArizeExportClient()
20 print('#### Exporting your primary dataset into a dataframe.')
---> 22 primary_df = client.export_model_to_df(
23 space_id='U3BhY2U6MjA5',
24 model_id='kitchen-production-dlps-2-forecasting-prod-backtest',
25 environment=Environments.PRODUCTION,
26 start_time=datetime.fromisoformat('2022-02-01T05:00:00.000+00:00'),
27 end_time=datetime.fromisoformat('2022-02-03T04:59:59.999+00:00'),
28 model_version='core_dec18_run_for_2022',
29 )
File c:\AppInstall\Miniconda3\lib\site-packages\arize\exporter\core\client.py:113, in ArizeExportClient.export_model_to_df(self, space_id, model_id, environment, start_time, end_time, include_actuals, model_version, batch_id, where)
69 def export_model_to_df(
70 self,
71 space_id: str,
(...)
79 where: Optional[str] = None,
80 ) -> pd.DataFrame:
81 """
82 Exports data of a specific model in the Arize platform to a pandas dataframe for a defined
83 time interval and model environment, optionally by model version and/or batch id.
(...)
...
File c:\AppInstall\Miniconda3\lib\site-packages\pyarrow\_flight.pyx:1353, in pyarrow._flight.FlightClient.get_flight_info()
File c:\AppInstall\Miniconda3\lib\site-packages\pyarrow\_flight.pyx:69, in pyarrow._flight.check_flight_status()
FlightUnavailableError: gRPC returned unavailable error, with message: Empty updateI tried it with just a few days worth.
So this error actually looks like you aren't even able to reach our exporter server. I am unable to reproduce this error at the moment. Do you mind sharing what OS you're using? Just want to rule out any possible culprits. Also, can you confirm that you were able to export data at some point in the past with your current setup?
My hunch is that this is due to the operating system from which you are attempting to export data, and some possible issue with the underlying grpc library that's being used. I also noticed that you belong to an org that has a dedicated support channel. If you'd like to join that and need assistance, feel free to DM me!
I believe your colleagues have used the export feature successfully, so they also might be able to share some insight.
