Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting this error kali linux #3

Closed
RSGtechnical opened this issue May 9, 2021 · 13 comments
Closed

getting this error kali linux #3

RSGtechnical opened this issue May 9, 2021 · 13 comments

Comments

@RSGtechnical
Copy link

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

@lohithvadde
Copy link

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

@RSGtechnical
Copy link
Author

3.7.6

@RSGtechnical
Copy link
Author

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
Copy link
Owner

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

 Beneficiaries_Ids = { 
      '18':["id1","id2"],
      '45':["id3"]
  }

@RSGtechnical
Copy link
Author

Beneficiaries_Ids = {

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

'45':["24139050145880"]

} #beficiary ids in str format

still get the error

@suraj-deshmukh
Copy link
Owner

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

@RSGtechnical
Copy link
Author

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

@RSGtechnical
Copy link
Author

python version 3.7.6

@suraj-deshmukh
Copy link
Owner

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

@RSGtechnical
Copy link
Author

here
Screenshot 2021-05-10 145803

@suraj-deshmukh
Copy link
Owner

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

@RSGtechnical
Copy link
Author

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

@RSGtechnical
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants