Repository navigation
FileNotFoundError in test_bundle_trt_export #8354
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
[2025-02-18T15:17:28.748Z] ======================================================================
[2025-02-18T15:17:28.748Z] ERROR: test_onnx_trt_export_0_fp32 (tests.bundle.test_bundle_trt_export.TestTRTExport)
[2025-02-18T15:17:28.748Z] ----------------------------------------------------------------------
[2025-02-18T15:17:28.748Z] Traceback (most recent call last):
[2025-02-18T15:17:28.748Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-02-18T15:17:28.748Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/test_bundle_trt_export.py", line 123, in test_onnx_trt_export
[2025-02-18T15:17:28.748Z] parser.read_config(config_file)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 319, in read_config
[2025-02-18T15:17:28.748Z] content.update(self.load_config_files(f, **kwargs))
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 426, in load_config_files
[2025-02-18T15:17:28.748Z] config_dict = cls.load_config_file(i, **kwargs)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 398, in load_config_file
[2025-02-18T15:17:28.748Z] with open(_filepath) as f:
[2025-02-18T15:17:28.748Z] FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/testing_data/inference.json'
[2025-02-18T15:17:28.748Z]
[2025-02-18T15:17:28.748Z] ======================================================================
[2025-02-18T15:17:28.748Z] ERROR: test_onnx_trt_export_1_fp16 (tests.bundle.test_bundle_trt_export.TestTRTExport)
[2025-02-18T15:17:28.748Z] ----------------------------------------------------------------------
[2025-02-18T15:17:28.748Z] Traceback (most recent call last):
[2025-02-18T15:17:28.748Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-02-18T15:17:28.748Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/test_bundle_trt_export.py", line 123, in test_onnx_trt_export
[2025-02-18T15:17:28.748Z] parser.read_config(config_file)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 319, in read_config
[2025-02-18T15:17:28.748Z] content.update(self.load_config_files(f, **kwargs))
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 426, in load_config_files
[2025-02-18T15:17:28.748Z] config_dict = cls.load_config_file(i, **kwargs)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 398, in load_config_file
[2025-02-18T15:17:28.748Z] with open(_filepath) as f:
[2025-02-18T15:17:28.748Z] FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/testing_data/inference.json'
[2025-02-18T15:17:28.748Z]
[2025-02-18T15:17:28.748Z] ======================================================================
[2025-02-18T15:17:28.748Z] ERROR: test_trt_export_0_fp32 (tests.bundle.test_bundle_trt_export.TestTRTExport)
[2025-02-18T15:17:28.748Z] ----------------------------------------------------------------------
[2025-02-18T15:17:28.748Z] Traceback (most recent call last):
[2025-02-18T15:17:28.748Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-02-18T15:17:28.748Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/test_bundle_trt_export.py", line 85, in test_trt_export
[2025-02-18T15:17:28.748Z] parser.read_config(config_file)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 319, in read_config
[2025-02-18T15:17:28.748Z] content.update(self.load_config_files(f, **kwargs))
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 426, in load_config_files
[2025-02-18T15:17:28.748Z] config_dict = cls.load_config_file(i, **kwargs)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 398, in load_config_file
[2025-02-18T15:17:28.748Z] with open(_filepath) as f:
[2025-02-18T15:17:28.748Z] FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/testing_data/inference.json'
[2025-02-18T15:17:28.748Z]
[2025-02-18T15:17:28.748Z] ======================================================================
[2025-02-18T15:17:28.748Z] ERROR: test_trt_export_1_fp16 (tests.bundle.test_bundle_trt_export.TestTRTExport)
[2025-02-18T15:17:28.748Z] ----------------------------------------------------------------------
[2025-02-18T15:17:28.748Z] Traceback (most recent call last):
[2025-02-18T15:17:28.748Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-02-18T15:17:28.748Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/test_bundle_trt_export.py", line 85, in test_trt_export
[2025-02-18T15:17:28.748Z] parser.read_config(config_file)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 319, in read_config
[2025-02-18T15:17:28.748Z] content.update(self.load_config_files(f, **kwargs))
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 426, in load_config_files
[2025-02-18T15:17:28.748Z] config_dict = cls.load_config_file(i, **kwargs)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 398, in load_config_file
[2025-02-18T15:17:28.748Z] with open(_filepath) as f:
[2025-02-18T15:17:28.748Z] FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/testing_data/inference.json'
[2025-02-18T15:17:28.748Z]
[2025-02-18T15:17:28.748Z] ======================================================================
[2025-02-18T15:17:28.748Z] ERROR: test_trt_export_2_fp32 (tests.bundle.test_bundle_trt_export.TestTRTExport)
[2025-02-18T15:17:28.748Z] ----------------------------------------------------------------------
[2025-02-18T15:17:28.748Z] Traceback (most recent call last):
[2025-02-18T15:17:28.748Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-02-18T15:17:28.748Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/test_bundle_trt_export.py", line 85, in test_trt_export
[2025-02-18T15:17:28.748Z] parser.read_config(config_file)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 319, in read_config
[2025-02-18T15:17:28.748Z] content.update(self.load_config_files(f, **kwargs))
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 426, in load_config_files
[2025-02-18T15:17:28.748Z] config_dict = cls.load_config_file(i, **kwargs)
[2025-02-18T15:17:28.748Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 398, in load_config_file
[2025-02-18T15:17:28.749Z] with open(_filepath) as f:
[2025-02-18T15:17:28.749Z] FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/testing_data/inference.json'
[2025-02-18T15:17:28.749Z]
[2025-02-18T15:17:28.749Z] ======================================================================
[2025-02-18T15:17:28.749Z] ERROR: test_trt_export_3_fp16 (tests.bundle.test_bundle_trt_export.TestTRTExport)
[2025-02-18T15:17:28.749Z] ----------------------------------------------------------------------
[2025-02-18T15:17:28.749Z] Traceback (most recent call last):
[2025-02-18T15:17:28.749Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-02-18T15:17:28.749Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-02-18T15:17:28.749Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/test_bundle_trt_export.py", line 85, in test_trt_export
[2025-02-18T15:17:28.749Z] parser.read_config(config_file)
[2025-02-18T15:17:28.749Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 319, in read_config
[2025-02-18T15:17:28.749Z] content.update(self.load_config_files(f, **kwargs))
[2025-02-18T15:17:28.749Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 426, in load_config_files
[2025-02-18T15:17:28.749Z] config_dict = cls.load_config_file(i, **kwargs)
[2025-02-18T15:17:28.749Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/bundle/config_parser.py", line 398, in load_config_file
[2025-02-18T15:17:28.749Z] with open(_filepath) as f:
[2025-02-18T15:17:28.749Z] FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/agent/workspace/Monai-latest-image/tests/bundle/testing_data/inference.json'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
KumoLiu commentedon Feb 19, 2025
Hi @garciadias, could you please help take a look at this issue? It should be due to refactor that the file can't be found in this test. Thanks!
garciadias commentedon Feb 19, 2025
Hi @KumoLiu, I think I have solved the problem.
While running the
./runtests.sh -f -u --net --coveragelocally I see two errors:Would you like me to solve these on this PR as well?
KumoLiu commentedon Feb 19, 2025
Hi @garciadias, thank you for the quick fix! The first error you mentioned is due to the absence of a private NGC org arg setting, which has been configured in the CI environment, so that should be fine.
As for the second issue, I will leave it to @mingxin-zheng help take a look at it.
In the meantime, we can go ahead and merge your PR. Thanks again!
Solves path problem in test_bundle_trt_export.py (#8357)
KumoLiu commentedon Feb 21, 2025
One missing place:
MONAI/tests/bundle/test_bundle_trt_export.py
Line 111 in d98f348
cc @garciadias
8354 fix path at test onnx trt export (#8361)
Solves path problem in test_bundle_trt_export.py (Project-MONAI#8357)
8354 fix path at test onnx trt export (Project-MONAI#8361)