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

Sconsolidator failing with scons 4 because it's using python 2.7 instead of 3 #61

Open
mazina opened this issue Mar 11, 2021 · 1 comment

Comments

@mazina
Copy link

mazina commented Mar 11, 2021

I've been using sconsolidator with for years now without issue for our projects. Recently, we switched over to scons 4, which requires python 3, and sconsolidator is no longer working. It looks like the problem is that sconsolidator or ecliplse is still using python 2.7 to run scons.

Command line: /Users/mazzin/git/Soar/SoarSuite/scons/scons.py --version
scons: *** SCons version 4.0.1 does not run under Python version 2.7.16.
Python >= 3.5 is required.
Duration 101 ms.

I suppose this could be an OSX, Eclipse or a Sconsolidator issue. In eclipse, I have it set to use only python 3 (under pydev settings). On the command line, it also uses python 3 by default. I can't really change any sconsolidator settings because the settings tab for sconsolidator shows an invalid scons path error because it was unable to check the scons versions using python 2.7. Is there anything else I can do to force it to use python 3 under the hood?

@mazina
Copy link
Author

mazina commented Mar 13, 2021

If I launch eclipse from the command line, it will use python 3. Unfortunately, sconsolidator still fails. The error I see when I open up the scons settings, "Executable path invalid", seems to indicate that it can't extract the scons path from the version output. Perhaps sconsolidator is not expecting the path to be returned as a list?

INFO: You can change the colors for this console in the CDT build console settings.
=== Running SCons at 3/13/21, 1:13 PM ====
Command line: /Users/mazzin/git/Soar/SoarSuite/scons/scons.py --version
SCons by Steven Knight et al.:
	SCons: v4.0.1.c289977f8b34786ab6c334311e232886da7e8df1, 2020-07-17 01:50:03, by bdbaddog on ProDog2020
	SCons path: ['/Users/me/git/Soar/SoarSuite/scons/scons-local-4.0.1/SCons']
Copyright (c) 2001 - 2020 The SCons Foundation
Duration 100 ms.

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

1 participant