In building an index in the foreground lab and running python script “building_index_in_foreground.py” the following error message is created:
python building_index_in_foreground.py -p 30000 - h localhost
Traceback (most recent call last):
File “building_index_in_foreground.py”, line 18, in
eval(compile(d(code), “”, ‘exec’))
File “”, line 81
print “Looks like the employees collection is already present.”
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(“Looks like the employees collection is already present.”)?
help – I am using Python 3.7.3 on my machine… I know the syntax is the issue, but can not fix it. Have fixed script using base64 decoder/encoder, but seems to not run on my machine (windows 10) by calling python:
python building_index_in_foreground.py -p 30000 - h localhost
Usage:
./building_index_in_foreground.py [options]
Will accept any recommendations!