Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

ipywidgets.version_info is deprecated since version a6 causing progress.reporter__init__.py to fail #1571

Closed
apayne97 opened this issue Aug 24, 2022 · 1 comment

Comments

@apayne97
Copy link

Error:

  File "/lila/data/chodera/paynea/fah-analysis-tmem175/fah_analysis/core/dimensionality_reduction.py", line 5, in run_2d_tica
    my_data = pma.coordinates.load(fn_list, stride=100)
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/coordinates/api.py", line 245, in load
    reader = create_file_reader(trajfiles, top, features, chunksize=cs, **kw)
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/coordinates/data/util/reader_utils.py", line 114, in create_file_reader
    reader = NumPyFileReader(input_list, chunksize=chunksize)
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/coordinates/data/numpy_filereader.py", line 65, in __init__
    self.filenames = filenames
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/coordinates/data/_base/datasource.py", line 118, in filenames
    pg.register(len(filename_list), 'Obtaining file info')
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/_base/progress/reporter/__init__.py", line 220, in register
    self._progress_register(amount_of_work=amount_of_work, description=description, stage=stage, tqdm_args=tqdm_args)
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/_base/progress/reporter/__init__.py", line 143, in _progress_register
    if _attached_to_ipy_notebook_with_widgets():
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/_base/progress/reporter/__init__.py", line 10, in wrapper
    f.res = f()
  File "/home/paynea/miniconda3/envs/fah-analysis-tmem175/lib/python3.7/site-packages/pyemma/_base/progress/reporter/__init__.py", line 20, in _attached_to_ipy_notebook_with_widgets
    if ipywidgets.version_info[0] < 4:
AttributeError: module 'ipywidgets' has no attribute 'version_info'

Line 20 should use _getattr or something to have it not fail.

https://discourse.jupyter.org/t/where-is-version-info-for-ipywidgets-version-8-which-versions-are-at-which-stage-stable-development-test-etc/11852

jupyter-widgets/ipywidgets@04d4217

env.txt

@clonker
Copy link
Member

clonker commented Aug 26, 2022

Thanks for bringing this to our attention. Will be fixed soon.

clonker added a commit to clonker/PyEMMA that referenced this issue Aug 26, 2022
@clonker clonker closed this as completed in 872d18e Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants