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

test_transchex integration error (transformers v4.22) #5157

Closed
wyli opened this issue Sep 15, 2022 · 0 comments
Closed

test_transchex integration error (transformers v4.22) #5157

wyli opened this issue Sep 15, 2022 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@wyli
Copy link
Contributor

wyli commented Sep 15, 2022

15:59:42  ======================================================================
15:59:42  ERROR: test_shape_0 (tests.test_transchex.TestTranschex)
15:59:42  ----------------------------------------------------------------------
15:59:42  Traceback (most recent call last):
15:59:42    File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
15:59:42      return func(*(a + p.args), **p.kwargs)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/tests/test_transchex.py", line 50, in test_shape
15:59:42      net = Transchex(**input_param)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/transchex.py", line 348, in __init__
15:59:42      self.multimodal = MultiModal.from_pretrained(
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/transchex.py", line 68, in from_pretrained
15:59:42      resolved_archive_file = cached_path(archive_file, cache_dir=cache_dir)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/utils/module.py", line 415, in __call__
15:59:42      raise self._exception
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/utils/module.py", line 374, in optional_import
15:59:42      the_module = getattr(the_module, name)
15:59:42  monai.utils.module.OptionalImportError: from transformers.file_utils import cached_path (module 'transformers.file_utils' has no attribute 'cached_path').
15:59:42  
15:59:42  For details about installing the optional dependencies, please visit:
15:59:42      https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies
15:59:42  
15:59:42  ======================================================================
15:59:42  ERROR: test_shape_1 (tests.test_transchex.TestTranschex)
15:59:42  ----------------------------------------------------------------------
15:59:42  Traceback (most recent call last):
15:59:42    File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
15:59:42      return func(*(a + p.args), **p.kwargs)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/tests/test_transchex.py", line 50, in test_shape
15:59:42      net = Transchex(**input_param)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/transchex.py", line 348, in __init__
15:59:42      self.multimodal = MultiModal.from_pretrained(
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/transchex.py", line 68, in from_pretrained
15:59:42      resolved_archive_file = cached_path(archive_file, cache_dir=cache_dir)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/utils/module.py", line 415, in __call__
15:59:42      raise self._exception
15:59:42    File "/opt/conda/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
15:59:42      yield
15:59:42    File "/opt/conda/lib/python3.8/unittest/case.py", line 676, in run
15:59:42      self._callTestMethod(testMethod)
15:59:42    File "/opt/conda/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
15:59:42      method()
15:59:42    File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
15:59:42      return func(*(a + p.args), **p.kwargs)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/tests/test_transchex.py", line 50, in test_shape
15:59:42      net = Transchex(**input_param)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/transchex.py", line 348, in __init__
15:59:42      self.multimodal = MultiModal.from_pretrained(
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/transchex.py", line 68, in from_pretrained
15:59:42      resolved_archive_file = cached_path(archive_file, cache_dir=cache_dir)
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/utils/module.py", line 415, in __call__
15:59:42      raise self._exception
15:59:42    File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/utils/module.py", line 374, in optional_import
15:59:42      the_module = getattr(the_module, name)
15:59:42  monai.utils.module.OptionalImportError: from transformers.file_utils import cached_path (module 'transformers.file_utils' has no attribute 'cached_path').
15:59:42  
15:59:42  For details about installing the optional dependencies, please visit:
15:59:42      https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies

have to pin the version

@KumoLiu KumoLiu added the dependencies Pull requests that update a dependency file label Dec 7, 2023
@vikashg vikashg closed this as completed Dec 19, 2023
KumoLiu added a commit that referenced this issue Dec 29, 2023
Fixes #7338

### Description

transformers' version is pinned to v4.22 since
#5157.
Updated the version refer to
huggingface/transformers#21678.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
marksgraham pushed a commit to marksgraham/MONAI that referenced this issue Jan 30, 2024
Fixes Project-MONAI#7338

### Description

transformers' version is pinned to v4.22 since
Project-MONAI#5157.
Updated the version refer to
huggingface/transformers#21678.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
juampatronics pushed a commit to juampatronics/MONAI that referenced this issue Mar 25, 2024
Fixes Project-MONAI#7338

### Description

transformers' version is pinned to v4.22 since
Project-MONAI#5157.
Updated the version refer to
huggingface/transformers#21678.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>
Yu0610 pushed a commit to Yu0610/MONAI that referenced this issue Apr 11, 2024
Fixes Project-MONAI#7338

### Description

transformers' version is pinned to v4.22 since
Project-MONAI#5157.
Updated the version refer to
huggingface/transformers#21678.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Yu0610 <612410030@alum.ccu.edu.tw>
vgrau98 pushed a commit to vgrau98/MONAI that referenced this issue Apr 28, 2024
Fixes Project-MONAI#7338

### Description

transformers' version is pinned to v4.22 since
Project-MONAI#5157.
Updated the version refer to
huggingface/transformers#21678.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

3 participants