open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.21k stars 1.23k forks source link

SyntaxError: unmatched ')' [Bug] #2862

Open Inscredion opened 2 months ago

Inscredion commented 2 months ago

Branch

main branch (1.x version, such as v1.0.0, or dev-1.x branch)

Prerequisite

Environment

source install

Describe the bug

[2024-07-22 16:09:32,318] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect) [WARNING] async_io requires the dev libaio .so object and headers but these were not found. [WARNING] async_io: please install the libaio-dev package with apt [WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found. [WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH [WARNING] NVIDIA Inference is only supported on Ampere and newer architectures [WARNING] using untested triton version (2.0.0), only 1.0.0 is known to be compatible Traceback (most recent call last): File "/home/41875/10_Private/zhang_chi9/pro/Video/mmaction2-main/tools/train.py", line 143, in main() File "/home/41875/10_Private/zhang_chi9/pro/Video/mmaction2-main/tools/train.py", line 124, in main cfg = Config.fromfile(args.config) File "/root/anaconda3/envs/clip/lib/python3.10/site-packages/mmengine/config/config.py", line 460, in fromfile lazy_import is None and not Config._is_lazy_import(filename): File "/root/anaconda3/envs/clip/lib/python3.10/site-packages/mmengine/config/config.py", line 1663, in _is_lazy_import parsed_codes = ast.parse(codes_str) File "/root/anaconda3/envs/clip/lib/python3.10/ast.py", line 50, in parse return compile(source, filename, mode, flags,_feature_version=feature_version) File "", line 16 ) ^ SyntaxError: unmatched ')'

Reproduces the problem - code sample

No response

Reproduces the problem - command or script

No response

Reproduces the problem - error message

[2024-07-22 16:09:32,318] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect) [WARNING] async_io requires the dev libaio .so object and headers but these were not found. [WARNING] async_io: please install the libaio-dev package with apt [WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found. [WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH [WARNING] NVIDIA Inference is only supported on Ampere and newer architectures [WARNING] using untested triton version (2.0.0), only 1.0.0 is known to be compatible Traceback (most recent call last): File "/home/41875/10_Private/zhang_chi9/pro/Video/mmaction2-main/tools/train.py", line 143, in main() File "/home/41875/10_Private/zhang_chi9/pro/Video/mmaction2-main/tools/train.py", line 124, in main cfg = Config.fromfile(args.config) File "/root/anaconda3/envs/clip/lib/python3.10/site-packages/mmengine/config/config.py", line 460, in fromfile lazy_import is None and not Config._is_lazy_import(filename): File "/root/anaconda3/envs/clip/lib/python3.10/site-packages/mmengine/config/config.py", line 1663, in _is_lazy_import parsed_codes = ast.parse(codes_str) File "/root/anaconda3/envs/clip/lib/python3.10/ast.py", line 50, in parse return compile(source, filename, mode, flags,_feature_version=feature_version) File "", line 16 ) ^ SyntaxError: unmatched ')'

Additional information

No response