Closed ClausKlein closed 3 years ago
is is a problem for my host, sorry
it works on Debian stable, with old cmake, python, cmake-lint ...
but on OSX with newest tools not:
bash-3.2$ pip3 install cmakelang
Requirement already satisfied: cmakelang in /usr/local/lib/python3.9/site-packages (0.6.13)
Requirement already satisfied: six>=1.13.0 in /usr/local/Cellar/protobuf/3.14.0/libexec/lib/python3.9/site-packages (from cmakelang) (1.15.0)
bash-3.2$ pip3 check
No broken requirements found.
bash-3.2$ pip3 list
Package Version
------------ -------
autopep8 1.5.4
builddriver 0.9.0
cmake-format 0.6.13
cmakelang 0.6.13
cmakelint 1.4.1
Jinja2 2.11.3
MarkupSafe 1.1.1
meson 0.56.2
pip 21.0.1
protobuf 3.14.0
pycodestyle 2.6.0
Pygments 2.7.4
setuptools 52.0.0
six 1.15.0
toml 0.10.2
wheel 0.36.2
bash-3.2$
bash-3.2$ cmake-format --dump-config
Traceback (most recent call last):
File "/usr/local/bin/cmake-format", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/cmakelang/format/__main__.py", line 633, in main
return inner_main()
File "/usr/local/lib/python3.9/site-packages/cmakelang/format/__main__.py", line 587, in inner_main
config_dict = get_config(os.getcwd(), args.config_files)
File "/usr/local/lib/python3.9/site-packages/cmakelang/format/__main__.py", line 359, in get_config
return get_configdict(configfile_paths)
File "/usr/local/lib/python3.9/site-packages/cmakelang/format/__main__.py", line 312, in get_configdict
increment_dict = get_one_config_dict(configfile_path)
File "/usr/local/lib/python3.9/site-packages/cmakelang/format/__main__.py", line 303, in get_one_config_dict
return try_get_configdict(configfile_path)
File "/usr/local/lib/python3.9/site-packages/cmakelang/format/__main__.py", line 256, in try_get_configdict
raise RuntimeError("Failed to parse {} as any of yaml, json, or python"
RuntimeError: Failed to parse /Users/clausklein/Workspace/cpp/ModernCppStarter/.cmake-format as any of yaml, json, or python
bash-3.2$ cmake-format --version
0.6.13
bash-3.2$
ops: PyYAML was not installed!
With this py modules it works fine now:
Package Version
------------------ -------
autopep8 1.5.4
builddriver 0.9.0
cmake-format 0.6.13
cmakelang 0.6.13
cmakelint 1.4.1
Jinja2 2.11.3
MarkupSafe 1.1.1
meson 0.56.2
pip 21.0.1
protobuf 3.14.0
pycodestyle 2.6.0
Pygments 2.7.4
PyYAML 5.4.1
setuptools 52.0.0
six 1.15.0
toml 0.10.2
wheel 0.36.2
yaml-configuration 0.2.5
bash-3.2$