jarrodnorwell / InstaPy2

Instagram automation tool for farming comments, follows and likes, written in Python
GNU General Public License v3.0
49 stars 9 forks source link

AttributeError: 'MediaUtility' object has no attribute 'configuration' #12

Closed Senooy closed 1 year ago

Senooy commented 1 year ago

After launching the script and successfully logged in, this returns me this error in Terminal

[INFO]: Successfully logged in as: falconmarketingfr. Traceback (most recent call last): File "/Users/youneskhelifi/Documents/projets/insta/single_session.py", line 24, in <module> session.like(amount=10, iterable=['christmas'], type=LikeType.Tags) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/instapy2/instapy2.py", line 232, in like medias = self.configuration.media.medias_tag(amount=amount, tag=tag, randomize_media=randomize_media, skip_top=skip_top) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/instapy2/utilities/media.py", line 58, in medias_tag medias += [media for media in self.session.hashtag_medias_recent(name=tag, amount=amount) if not any(username in media.user.username for username in self.configuration.people.users_to_skip)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/instapy2/utilities/media.py", line 58, in <listcomp> medias += [media for media in self.session.hashtag_medias_recent(name=tag, amount=amount) if not any(username in media.user.username for username in self.configuration.people.users_to_skip)] ^^^^^^^^^^^^^^^^^^ AttributeError: 'MediaUtility' object has no attribute 'configuration'

Am I doing anything wrong ?

jarrodnorwell commented 1 year ago

Should be fixed in #13