Error Launching App with Traces in Arize Phoenix: TypeError Fix Help
Hello Arize team, I'm running into an issue launching an app with the traces from another run. I have the following environment: - Jupyter notebook - arize-phoenix==3.16.0 Exported the traces from an existing session: df = session.get_spans_dataframe() df.to_csv("traces.csv") I am trying to launch the new session in this way: import phoenix as px import pandas as pd spans_df = pd.read_csv("input_data/traces.csv") px_dataset = px.TraceDataset(spans_df, 'prod_df') session = px.launch_app(trace=px_dataset) I am getting the following error:
TypeError Traceback (most recent call last)
Cell In[17], line 1
----> 1 session = px.launch_app(trace=px_dataset)
File d:\llama_dev_env\venv\Lib\site-packages\phoenix\session\session.py:538, in launch_app(primary, reference, corpus, trace, default_umap_parameters, host, port, run_in_thread, notebook_environment)
535 port = port or get_env_port()
537 if run_in_thread:
--> 538 _session = ThreadSession(
539 primary,
540 reference,
541 corpus,
542 trace,
543 default_umap_parameters,
544 host=host,
545 port=port,
546 notebook_env=nb_env,
547 )
548 # TODO: catch exceptions from thread
549 else:
550 _session = ProcessSession(
551 primary,
552 reference,
(...)
558 notebook_env=nb_env,
...
88 else None
89 )
90 return Span(**data)
TypeError: string indices must be integers, not 'str'Any idea?
