VIDA-NYU / bdi-kit

A Python toolkit for biomedical data integration
https://bdi-kit.readthedocs.io
Apache License 2.0
1 stars 1 forks source link

KeyError when running manager.reduce_scope() in example notebook #40

Open snkeegan opened 1 month ago

snkeegan commented 1 month ago

When I run the cell with the code "manager.reduce_scope()" in the column_and_value_mapping notebook from the examples, I get the following error. I can see the histogram and table printed but then the error occurs.

Cache directory does not exist, creating it at: /gpfs/home/snk218/.cache/bdikit/models Downloading model cl-reducer-v0.1 from Box to /gpfs/home/snk218/.cache/bdikit/models/cl-reducer-v0.1 100%  501M/501M [00:05<00:00, 92.7MB/s] Some weights of RobertaModel were not initialized from the model checkpoint at roberta-base and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. 0%| | 0/17 [00:00<?, ?it/s]We strongly recommend passing in an attention_mask since your input_ids may be padded. See https://huggingface.co/docs/transformers/troubleshooting#incorrect-output-when-padding-tokens-arent-masked. 100%|██████████| 17/17 [00:00<00:00, 23.39it/s] Table features extracted from 17 columns 100%|██████████| 734/734 [00:32<00:00, 22.92it/s] Table features extracted from 734 columns Traceback (most recent call last): Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content' Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content' Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content' Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content' Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content' Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content' Traceback (most recent call last): File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/pyviz_comms/init.py", line 340, in _handle_msg self._on_msg(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg patch = manager.assemble(msg) File "/gpfs/data/proteomics/home/snk218/software/miniforge3/envs/py310/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble msg_obj = cls(header, msg['metadata'], msg['content']) KeyError: 'content'

aecio commented 1 month ago

This is looking like an error in the dependencies, probably some incompatible version was installed in your environment. What version of panel do you get when you run pip show panel?

roquelopez commented 1 month ago

@viguardieiro could you please check this problem? It seems an issue with the version of panel.

viguardieiro commented 1 month ago

@viguardieiro could you please check this problem? It seems an issue with the version of panel.

@EdenWuyifan is having this exact error when running in NYU HPC. We still don't know the cause, but it doesn't seem to be related to panel's version.

EdenWuyifan commented 1 month ago

I have met this issue before @snkeegan , here's the ticket from Panel: https://github.com/holoviz/panel/issues/6865

They said to fix this with version 1.4.4, I will take a look and try to fix this.