Closed
Description
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