Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdshare fetch break: AttributeError: module 'ipywidgets' has no attribute 'version_info' #20

Open
jamesdalg opened this issue Jun 15, 2024 · 1 comment

Comments

@jamesdalg
Copy link

jamesdalg commented Jun 15, 2024

python
Python 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mdshare
>>> import numpy as np
>>> 
>>> local_filename = mdshare.fetch('alanine-dipeptide-3x250ns-backbone-dihedrals.npz')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jd/mambaforge/lib/python3.10/site-packages/mdshare/api.py", line 121, in fetch
    pg.register(
  File "/home/jd/mambaforge/lib/python3.10/site-packages/progress_reporter/reporter.py", line 252, in register
    self._progress_register(amount_of_work=amount_of_work, description=description, stage=stage, tqdm_args=tqdm_args)
  File "/home/jd/mambaforge/lib/python3.10/site-packages/progress_reporter/reporter.py", line 138, in _progress_register
    if _attached_to_ipy_notebook_with_widgets():
  File "/home/jd/mambaforge/lib/python3.10/site-packages/progress_reporter/reporter.py", line 10, in wrapper
    f.res = f()
  File "/home/jd/mambaforge/lib/python3.10/site-packages/progress_reporter/reporter.py", line 20, in _attached_to_ipy_notebook_with_widgets
    if ipywidgets.version_info[0] < 4:
AttributeError: module 'ipywidgets' has no attribute 'version_info'
>>> with np.load(local_filename) as fh:
...     trajs = [fh[key] for key in sorted(fh.keys())]
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'local_filename' is not defined

@GSINGH006
Copy link

hi @jamesdalg are you still getting this error? I am facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants