nwbwidgets icon indicating copy to clipboard operation
nwbwidgets copied to clipboard

[Bug]: nwbwidgets incompatible with pynwb

Open kfouke1 opened this issue 8 months ago • 2 comments

What happened?

I cannot get nwbwidgets to work with pynwb (version 3.0). I installed pynwb first, and then installed nwbwidgets, both using pip. This is the import error that I am getting:

Image

Steps to Reproduce

No response

Traceback


Operating System

Windows

Python Version

3.10

Package Versions

aiohappyeyeballs==2.6.1 aiohttp==3.11.16 aiosignal==1.3.2 annotated-types==0.7.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asciitree==0.3.3 asttokens==3.0.0 async-lru==2.0.5 async-timeout==5.0.1 attrs==25.3.0 babel==2.17.0 backports.tarfile==1.2.0 beautifulsoup4==4.13.4 bidsschematools==1.0.5 bleach==6.2.0 bqplot==0.12.44 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 ci-info==0.3.0 click==8.1.8 click-didyoumean==0.3.1 colorama==0.4.6 comm==0.2.2 contourpy==1.3.2 cycler==0.12.1 dandi==0.67.3 dandischema==0.11.0 debugpy==1.8.14 decorator==5.2.1 defusedxml==0.7.1 dnspython==2.7.0 email_validator==2.2.0 etelemetry==0.3.1 exceptiongroup==1.2.2 executing==2.2.0 fasteners==0.19 fastjsonschema==2.21.1 fonttools==4.57.0 fqdn==1.5.1 frozenlist==1.6.0 fscacher==0.4.4 fsspec==2025.3.2 gast==0.4.0 h11==0.14.0 h5py==3.13.0 hdmf==4.0.0 hdmf_zarr==0.11.1 httpcore==1.0.8 httpx==0.28.1 humanize==4.12.2 idna==3.10 imageio==2.37.0 importlib-metadata==4.13.0 interleave==0.3.0 ipydatagrid==1.4.0 ipydatawidgets==4.3.2 ipyfilechooser==0.6.0 ipykernel==6.29.5 ipympl==0.9.7 ipython==8.35.0 ipyvolume==0.6.3 ipyvue==1.11.2 ipyvuetify==1.11.1 ipywebrtc==0.6.0 ipywidgets==8.1.6 isodate==0.7.2 isoduration==20.11.0 jaraco.classes==3.4.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 jedi==0.19.2 Jinja2==3.1.6 joblib==1.4.2 json5==0.12.0 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2024.10.1 jupyter==1.1.1 jupyter-console==6.6.3 jupyter-events==0.12.0 jupyter-lsp==2.2.5 jupyter_client==8.6.3 jupyter_core==5.7.2 jupyter_server==2.15.0 jupyter_server_terminals==0.5.3 jupyterlab==4.4.0 jupyterlab_pygments==0.3.0 jupyterlab_server==2.27.3 jupyterlab_widgets==3.0.14 keyring==25.6.0 keyrings.alt==5.0.2 kiwisolver==1.4.8 lazy_loader==0.4 MarkupSafe==3.0.2 matplotlib==3.10.1 matplotlib-inline==0.1.7 mistune==3.1.3 more-itertools==10.6.0 multidict==6.4.3 natsort==8.4.0 nbclient==0.10.2 nbconvert==7.16.6 nbformat==5.10.4 ndx-grayscalevolume==0.0.2 ndx-icephys-meta==0.1.0 ndx-spectrum==0.2.2 nest-asyncio==1.6.0 networkx==3.4.2 notebook==7.4.0 notebook_shim==0.2.4 numcodecs==0.13.1 numpy==2.2.4 nwbinspector==0.6.3 nwbwidgets==0.11.3 overrides==7.7.0 packaging==24.2 pandas==2.2.3 pandocfilters==1.5.1 parso==0.8.4 pillow==11.2.1 platformdirs==4.3.7 plotly==5.13.1 prometheus_client==0.21.1 prompt_toolkit==3.0.51 propcache==0.3.1 psutil==7.0.0 pure_eval==0.2.3 py2vega==0.6.1 pycparser==2.22 pycryptodomex==3.22.0 pydantic==2.11.3 pydantic_core==2.33.1 Pygments==2.19.1 pynwb==3.0.0 pyout==0.8.1 pyparsing==3.2.3 python-dateutil==2.9.0.post0 python-json-logger==3.3.0 pythreejs==2.4.2 pytz==2025.2 pywin32==310 pywin32-ctypes==0.2.3 pywinpty==2.0.15 PyYAML==6.0.2 pyzmq==26.4.0 referencing==0.36.2 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rfc3987==1.3.8 rpds-py==0.24.0 ruamel.yaml==0.18.10 ruamel.yaml.clib==0.2.12 scikit-image==0.25.2 scipy==1.15.2 semantic-version==2.10.0 Send2Trash==1.8.3 SimpleITK-SimpleElastix==2.0.0rc2.dev910 six==1.17.0 sniffio==1.3.1 soupsieve==2.6 stack-data==0.6.3 tenacity==9.1.2 terminado==0.18.1 threadpoolctl==3.6.0 tifffile==2025.3.30 tinycss2==1.4.0 tomli==2.2.1 tornado==6.4.2 tqdm==4.67.1 traitlets==5.14.3 traittypes==0.2.1 trimesh==4.6.8 types-python-dateutil==2.9.0.20241206 typing-inspection==0.4.0 typing_extensions==4.13.2 tzdata==2025.2 uri-template==1.3.0 urllib3==2.4.0 wcwidth==0.2.13 webcolors==24.11.1 webencodings==0.5.1 websocket-client==1.8.0 widgetsnbextension==4.0.14 yarl==1.20.0 zarr==2.18.3 zarr-checksum==0.4.7 zipp==3.21.0

Code of Conduct

kfouke1 avatar Apr 18 '25 20:04 kfouke1

It seems like the bug is due to the recent update on hdmf. I was able to run nwbwidgets after downgrading the hdmf with the following code: pip install -U hdmf==3.14.6

sumiya-kuroda avatar Apr 22 '25 13:04 sumiya-kuroda

Thanks for your help! This did help, but now I am getting this message:

ModuleNotFoundError: No module named 'ipython_genutils'

Any advice? From searching it looks like a jupyter notebook issue...do you have a preferred coding program to run this out of?

kfouke1 avatar May 15 '25 17:05 kfouke1