gmail-generator icon indicating copy to clipboard operation
gmail-generator copied to clipboard

error on kali

Open accountdays opened this issue 5 years ago • 2 comments

python gmail_generator.py

Opening Firefox... Traceback (most recent call last): File "gmail_generator.py", line 180, in if open_firefox() : File "gmail_generator.py", line 45, in open_firefox location=pyautogui.center(start_button) File "/usr/local/lib/python2.7/dist-packages/pyscreeze/init.py", line 407, in center return (coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2)) TypeError: 'NoneType' object has no attribute 'getitem'

accountdays avatar Aug 13 '18 20:08 accountdays

this is due to pyautogui not being able to find the image while locating on the screen. Ive added a workaround for this which allows the script to get to the end of the account creation however am waiting to commit the phone verf until after im back on RHEL from kali.. lol

blooditrix avatar Aug 14 '18 12:08 blooditrix

python gmail_generator.py

Opening Firefox... Traceback (most recent call last): File "gmail_generator.py", line 180, in if open_firefox() : File "gmail_generator.py", line 45, in open_firefox location=pyautogui.center(start_button) File "/usr/local/lib/python2.7/dist-packages/pyscreeze/init.py", line 407, in center return (coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2)) TypeError: 'NoneType' object has no attribute 'getitem'

go to /usr/local/lib/python2.7/dist-packages/pyscreeze/init.py and change the function center(coords) to

def center(coords): if coords is None: return coords else: return Point(coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2))

faahiero avatar Feb 22 '20 05:02 faahiero