I have a python script that establishes connection to postgres db and writes results in csv.
When I run it from terminal on Mac, using command
administrators-MacBook-Pro:ml bob$ ./btltest.py -d dev -u temp_viewer -p "xxxxxxx" -l debug -s "2019-08-10" -e "2019-08-20"
it shows error
-bash: ./btltest.py: /usr/bin/python3: bad interpreter: No such file or directory
Using same credentials i.s. pass, user, db name as in the code to connect through pgadmin4 has no problem.
How can I remove this error ?