instapy-quickstart icon indicating copy to clipboard operation
instapy-quickstart copied to clipboard

security codes error

Open Jostino opened this issue 4 years ago • 1 comments

Hello, when I try to launch my script this is the error:

 ._.  ._.  ._.  ._.  ._.  ._.  ._.  ._.  ._. 
Custom workspace set: "/home/pi/InstaPy" :]
Traceback (most recent call last):
  File "/home/pi/InstaPy/assets/script.py", line 30, in <module>
    disable_image_load=True)
TypeError: __init__() got an unexpected keyword argument 'security_codes'

I've added the security_codes because my account has the 2FA:

session = InstaPy(username=insta_username,
                  password=insta_password,
                  security_codes=["1234","5678"],

Any ideas? Is this a bug?

Jostino avatar May 19 '21 08:05 Jostino

Hey @Jostino ! My first guess would be that you're not running the proper version of instapy. Have you checked that? Try reinstalling / upgrading your version to the current master one.

fintzd avatar Jun 30 '21 14:06 fintzd