suraj-deshmukh / CoWin-Vaccination-Auto-Schedule

A Python Script to Schedule Vaccination Appointment.
3 stars 1 forks source link

getting this error kali linux #3

Closed RSGtechnical closed 3 years ago

RSGtechnical commented 3 years ago

File "book.py", line 9 print(f"Beneficiaries Status_code: {beneficiaries.status_code}\n{beneficiaries.text}") ^ SyntaxError: invalid syntax

lohithvadde commented 3 years ago

Which python version are you using. This will work on python 3

RSGtechnical commented 3 years ago

3.7.6

RSGtechnical commented 3 years ago

can you tell me the correct format to put beneficiaries id in config file

this is what i did

Beneficiaries_Ids = { 24139050145880

'18':["",""],

'45':[""]

} #beficiary ids in str format

suraj-deshmukh commented 3 years ago

put your ids in list. make sure each element of list is str like below.

 Beneficiaries_Ids = { 
      '18':["id1","id2"],
      '45':["id3"]
  }
RSGtechnical commented 3 years ago

Beneficiaries_Ids = {

'18':["24139050145880","24139050145880"],

'45':["24139050145880"]

} #beficiary ids in str format

still get the error

suraj-deshmukh commented 3 years ago

what is the exact error. please specify exact python version as well. If possible attach screenshot

RSGtechnical commented 3 years ago

yes here what i get when i run the script Screenshot 2021-05-10 142829

RSGtechnical commented 3 years ago

python version 3.7.6

suraj-deshmukh commented 3 years ago

can you show what's being printed when you type python in command prompt

RSGtechnical commented 3 years ago

here Screenshot 2021-05-10 145803

suraj-deshmukh commented 3 years ago

you need python 3.5+ . what you have is python 2.7.12

RSGtechnical commented 3 years ago

so how to upgrade as you see i have upgraded the python

RSGtechnical commented 3 years ago

yes got the working in kali linux to use python3 you have to tell the linux so now its working