cling
cling copied to clipboard
CPT Crashes on MacOS
Attempting to install from source, but when I run ./cpt.py --check-requirements
I get the following crash:
+-----------------------------------------------------------------------------+
| Check availability of required softwares |
+-----------------------------------------------------------------------------+
git [OK]
Traceback (most recent call last):
File "tools/packaging/cpt.py", line 1916, in <module>
check_mac('cmake')
File "tools/packaging/cpt.py", line 1501, in check_mac
if not check_version_string_ge(exec_subprocess_check_output('{cmake} --version'.format(cmake=CMAKE), '/').strip().split('\n')[0].split()[-1], '3.4.3'):
IndexError: list index out of range
I've tried running from both the top level and the packaging folder, with Python 2 and 3. I am running MacOS 10.13. Any ideas?
Traceback (most recent call last):
File "./cpt.py", line 1842, in <module> check_ubuntu('cmake') File "./cpt.py", line 719, in check_ubuntu if not check_version_string_ge(exec_subprocess_check_output('{cmake} --version'.format(cmake=CMAKE), '/').strip().split('\n')[0].split()[-1], '3.4.3'): IndexError: list index out of range
Thanks for reporting. Can you tell the output of cmake --version
?
I did not have cmake installed, which is no doubt the problem. Better error reporting around this dependency would be great!
Now that I've installed cmake version 3.15.0-rc4, I have a new error:
+-----------------------------------------------------------------------------+
| Check availability of required softwares |
+-----------------------------------------------------------------------------+
git [OK]
Traceback (most recent call last):
File "./cpt.py", line 1916, in <module>
check_mac('cmake')
File "./cpt.py", line 1501, in check_mac
if not check_version_string_ge(exec_subprocess_check_output('{cmake} --version'.format(cmake=CMAKE), '/').strip().split('\n')[0].split()[-1], '3.4.3'):
File "./cpt.py", line 691, in check_version_string_ge
version_fields = [int(x) for x in vstring.split('.')]
ValueError: invalid literal for int() with base 10: '0-rc4'
So it looks like the dependency script doesn't like the latest release off the cmake site. Installing the latest stable release (3.14.5) works as intended.
Thanks for reporting. Can you tell the output of
cmake --version
?
I installed cmake
and then tried. I get another error:
Traceback (most recent call last): File "./cpt.py", line 1844, in <module> check_ubuntu('g++') File "./cpt.py", line 745, in check_ubuntu if float(exec_subprocess_check_output('g++ -dumpversion', '/')[:3].strip()) <= 4.7: ValueError: could not convert string to float:
Could you tell me what's the output of g++ -dumpversion
?