Closed RSGtechnical closed 3 years ago
Which python version are you using. This will work on python 3
3.7.6
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
put your ids in list. make sure each element of list is str like below.
Beneficiaries_Ids = {
'18':["id1","id2"],
'45':["id3"]
}
Beneficiaries_Ids = {
'18':["24139050145880","24139050145880"],
'45':["24139050145880"]
} #beficiary ids in str format
still get the error
what is the exact error. please specify exact python version as well. If possible attach screenshot
yes here what i get when i run the script
python version 3.7.6
can you show what's being printed when you type python in command prompt
here
you need python 3.5+ . what you have is python 2.7.12
so how to upgrade as you see i have upgraded the python
yes got the working in kali linux to use python3 you have to tell the linux so now its working
File "book.py", line 9 print(f"Beneficiaries Status_code: {beneficiaries.status_code}\n{beneficiaries.text}") ^ SyntaxError: invalid syntax