SCons, MSys, "not recognized as an internal or external command" error

I'm trying to use SCons to set up a project for compilation on Windows 7. In the MSys shell, I cd to the appropriate folder and run:

scons target=setup

...and I get the following output:

scons: Reading SConscript files ...
SCons 2.0.1
OS="'{' is not recognized as an internal or external command,
operable program or batch file."
Compiler version check failed - need gcc 3.x or later:
CC: gcc None
CXX: g++ None

The beginning of the SConscript file in the directory is:

import os, sys, commands, string
from makeversion import get_version
# OS Detection:
OS = commands.getoutput('uname')

It seems to me that the last line is the source of the error. Why am I getting the error and how would I fix it?


Asked by: Aldus814 | Posted: 06-12-2021






Similar questions

python - Not Recognized as an Internal or External Command


python - Tab not recognized as an internal or external command error?

The code is running and inserting but I get errors in command prompt saying 'tab' is not recognised as an internal or external command,operable program or batch file. What is the mistake i have done and How can i fix it ? Here is the python code : updatedb.py import sqlite3 as db import urllib import re import sys url=sys.argv[1] htmltext=urllib.urlopen(url).read() regex='<t...


regex - Python: 'q)+' is not recognized as an internal or external command

Python newbie here. I have a program named zeroOrMore.py It reads a regular expression (regex) from stdin. I invoke the program like this: python zeroOrMode.py (ab)*(p|q)+ That results in this error message: 'q)+' is not recognized as an internal or external command, operable program or batch file. I discovered that if ...


python - '{' is not recognized as internal or external command

This question already has an answer here:


Python error: 'gcc' is not recognized as an internal or external command

I'm trying to apply the Zhang-Suen thinning algorithm for a fingerprint recognition system. But I get this error : 'gcc' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "newff.py", line 69, in <module> sk = thinning(bn)...


python - sublime 3 'py' is not recognized as an internal or external command

This question already has answers here:


python - cmd not recognized as internal or external command

I am trying to install apache spark in windows for python. But as i execute C:\Spark\bin\spark-shell, it shows cmd not recognized as internal or external command. How do I fix it? I feel that there is some problem with environment variables but not sure.


python - No way to fix 'pip' is not recognized as an internal or external command

I know this question has been asked many times but I still can't get it to work. I have added the path variables python37 as well as python37\scripts. I have reinstalled python ensuring pip was selected to install. I have verified that pip.exe is inside my scripts folder, but still nothing seems to work.


Python 2.7 'Pip' is not recognized as an internal or external command

I tried following the instructions here with no luck. Attached is my cmd prompt output. Any suggestions?


CMD python is not recognized as an internal or external command, operable program or batch file

This question already has answers here:


python - 'touch' not recognized as internal or external command'

This question already has answers here:


cmd - Python is not recognized as internal or external command

Closed. This question does not meet Stack Overflow guid...


python - Why my command is not being recognized as an internal or external command?

Here is my problem. I am being unable to solve it


python - Is not recognized as an internal or external command eror using pyuic

I created a .ui file. I have been trying to convert it to .py file using pyuic (i don't have Anaconda) I am sure that I have pyuic.bat and it's directory is D:\Python35\Lib\site-packages\PyQt5 Then I open the directory of my .ui file. and i write cmd to address line. Afterward, I enter this command


python - py is not recognized as an internal or external command

This question already has answers here:


python - wget is not recognized as internal or external command, operable program or batch file

I'm having trouble downloading a dataframe using Jupyter Notebooks from the NBA API. I downloaded WGET as you see in the screenshot I provided , but i keep getting an error message saying 'wget is not recognize as internal or external command, operable program or batch file. Can anyone help please?


python - make' is not recognized as an internal or external command Windows 10 Anaconda

I am trying to run a biostars page on my laptop. Example. I am following the installation instructions on this here. I have followed everything up until the line make forum demo I get this error when I run this command. 'make' i...


python - 'cp' is not recognized as an internal or external command in jupyter notebook

code is !mkdir {'Tensorflow\workspace\models\\'+CUSTOM_MODEL_NAME} !cp {PRETRAINED_MODEL_PATH+'\ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu-8\pipeline.config'} {MODEL_PATH+'\'+CUSTOM_MODEL_NAME'} error is 'cp' is not recognized as an internal or external command, operable program or batch file. please help me


python - 'hskip' is not recognized as an internal or external command,

cmd = "perl -pe 's|hskip(.*?)(cm\\|in\\|pt\\|mm\\|em)|hspace{\\1\\2}|g' %s > %s"%(input_file, output_file) ret = subprocess.call(cmd, shell=True) if ret != 0: logging.error('FAILED: %s'%cmd) Error output: 'hskip' is not recognized as an internal or external command, operable program or batch file. 2021-02-21 16:39:46,454 root ERROR FAILED: perl -pe 's|hskip(.*?...


python - 'robot is not recognized as an internal or external command'

Problem: I am trying to running my Dummy.robot test script in the terminal via cmd line: robot -d results tests/dummy.robot. However, it is returning the error 'robot' is not recognized as an internal or external command. I sensed that perhaps the robotframework was not properly installed or in the correct directory because the keywords "Open Browser" (see below) was already detected...


python - Not Recognized as an Internal or External Command


python - Tab not recognized as an internal or external command error?

The code is running and inserting but I get errors in command prompt saying 'tab' is not recognised as an internal or external command,operable program or batch file. What is the mistake i have done and How can i fix it ? Here is the python code : updatedb.py import sqlite3 as db import urllib import re import sys url=sys.argv[1] htmltext=urllib.urlopen(url).read() regex='<t...


python - 'lessc' is not recognized as an internal or external command, operable program or batch file

I have been using Sublime Text 3 to compile .less css at work, but I can't get it to work on my local machine. I think it has something to do with the path variable for lessc, but I can't figure out how to find the path variable that I need to add to my path variable to make it work. Can some one help? I'm using Windows 7 with Sublime Text 3. Here is the error: Writing file /C/xampp/htdocs/p...


regex - Python: 'q)+' is not recognized as an internal or external command

Python newbie here. I have a program named zeroOrMore.py It reads a regular expression (regex) from stdin. I invoke the program like this: python zeroOrMode.py (ab)*(p|q)+ That results in this error message: 'q)+' is not recognized as an internal or external command, operable program or batch file. I discovered that if ...


python - '{' is not recognized as internal or external command

This question already has an answer here:


Python error: 'gcc' is not recognized as an internal or external command

I'm trying to apply the Zhang-Suen thinning algorithm for a fingerprint recognition system. But I get this error : 'gcc' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "newff.py", line 69, in <module> sk = thinning(bn)...


python - sublime 3 'py' is not recognized as an internal or external command

This question already has answers here:


python - 'more' is not recognized as an internal or external command, operable program or batch file

This question already has answers here:


python - conda is not recognized as an internal or external command, operable program or batch file

I was updating pandas (on windows 7) using: conda update pandas accidentally I closed the command window while updating. Now I can't start spyder and if I type conda in the command window I get: "conda is not recognized as an internal or external command operable program or batch file" if I type spyder --show=console I get from PyQt5.Qtwidg...


python - cmd not recognized as internal or external command

I am trying to install apache spark in windows for python. But as i execute C:\Spark\bin\spark-shell, it shows cmd not recognized as internal or external command. How do I fix it? I feel that there is some problem with environment variables but not sure.


python - Why would an "command not recognized" error occur only when a window is populated?

My record sheet app has a menu option for creating a new, blank record sheet. When I open a sheet window, I can open new windows without a problem, using subprocess.Popen() to do it. However, under Windows (I haven't tested it on other OSes yet), if I open a new window then use the "open file" dialog to populate the fields with data from a file, I'm no longer able to create new windows. Once it's populated, Windows...


python - Django custom auth backend not recognized on Apache

I'm trying to deploy my Django application to an Apache2 based server with mod_python. I've set the handlers right and made the configuration to make mod_python work with my project. My project implements a custom auth backend to connect my users to twitter, and my backend implementation is on: myproject |- backends/ directory.Everything seems to be working fine, my pages load and I can ma...


python - My method is being recognized within my own program. Newbie mistake probably

Here's my code: sentenceToTranslate = raw_input("Please write in the sentence you want to translate: ") words = sentenceToTranslate.split(" ") for word in words: if isVowel(word[0]): print "TEST" def isVowel(letter): if letter.lower() == "a" or letter.lower() == "e" or letter.lower() == "i" or letter.lower() == "o" or letter.lower() == "u": return True else: return Fal...


Trying to use py2exe, but python is not recognized

I am following the the tutorial at http://www.py2exe.org/index.cgi/Tutorial to figure out how to use py2exe. I get down to step 3 where you are supposed to run the command: python setup.py py2exe I do that and then I get this error: 'python' is not recognized as an internal or external command,...


python - How to have recognized all the libraries Rpy2 R

How to have recognized all the libraries Rpy2 R. Rpy2 not recognizing the libraries, utils, and tools. import rpy2.robjects as robjects R = robjects.r >>> R['library']("utils") RVector - Python:0x7f65fc85cfc8 / R:0x19bb980 >>> R['library']("tools") RVector - Python:0x7f65fc85f5a8 / R:0x2419140 (>>> from rpy2.robjects.packages import importr Traceback (most ...


python - Not recognized non existant file

im getting a weird error using this code (part of a class): from sys import path as workingDIR from os import system, path image = '' # some jpeg image data keep = 0 DIR = workingDIR[0] + '\\image' if path.isfile(DIR + '.jpeg'): # adding numbers to end of file name like how windows prevents multiple files having the same name x = 2 while path.isfile(DIR + ' (' + str(x) + ').jpeg'): ...


python - How to fix shebang flags that are not recognized on some systems

For some reason, the -O (optimized) flag is not recognized in the shebang line on a Red Hat Enterprise Server (release 5.3) that I access. On other systems, the flag is recognized without any issue. Executing the script below on OS X works fine. Recognition of the -O flag can be verified because it enables (when absent) or disables (when given) anything under the if __debug__


python - 'twistd' is not a recognized internal or external command

I'm trying to develop a Twisted Web server but can't seem to run the twistd command. I've tried setting the python path and even included the path to the twistd.py script in my Path but nothing seems to work. I'm using Twisted 12.0.0 and Python 2.7 on Windows. Any help would be hugely appreciated.


python - PPM file data cannot be recognized

I'm writing a simple picture editor. It uses PPM files. From what I can tell, I feel like my code should work. However, I get this error Traceback (most recent call last): File "/home/zach/Downloads/piceditor (1).py", line 84, in <module> main() File "/home/zach/Downloads/piceditor (1).py", line 69, in main image = Image(Point(100,100), filename) File "/home/zach/Downloads/graphics.py", ...


tkinter - Python-tk package not recognized in Python 2.7.3






Still can't find your answer? Check out these communities...



PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python



top