Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPT Crashes on MacOS #190

Open
milo-trujillo opened this issue Nov 16, 2018 · 5 comments
Open

CPT Crashes on MacOS #190

milo-trujillo opened this issue Nov 16, 2018 · 5 comments

Comments

@milo-trujillo
Copy link

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?

@reeshabhranjan
Copy link

reeshabhranjan commented Jul 10, 2019

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

@vgvassilev
Copy link
Owner

Thanks for reporting. Can you tell the output of cmake --version?

@milo-trujillo
Copy link
Author

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.

@reeshabhranjan
Copy link

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:

@vgvassilev
Copy link
Owner

Could you tell me what's the output of g++ -dumpversion?

vgvassilev added a commit that referenced this issue Jul 14, 2019
This will make sure that we have installed the binaries before checking for
version compatibility.

Fixes #190.
reikdas pushed a commit to reikdas/cling that referenced this issue Sep 25, 2019
This will make sure that we have installed the binaries before checking for
version compatibility.

Fixes vgvassilev#190.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants