You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# On Ubuntu 22.04 'python2' is not available by default. We want to give a slightly better
160
+
# error message than a traceback + `No such file or directory: 'python2'`
161
+
ifshutil.which("python2") isNone:
162
+
sys.exit(
163
+
"package installation failed: we detected this code as Python 2, but 'python2' executable was not available."
164
+
"To enable automatic package installation, please install 'python2' before the 'github/codeql-action/init' step, "
165
+
"such as running 'sudo apt install python2' (Ubuntu 22.04)."
166
+
"If your code is not Python 2, but actually Python 3, please file a bug report at https://github.com/github/codeql-action/issues/new"
167
+
)
168
+
157
169
ifos.path.exists('requirements.txt'):
158
170
print('Found requirements.txt, will install packages with pip', flush=True)
0 commit comments