shine-jayakumar / insta-likecom-bot

Automates likes and comments on an instagram account or tag
MIT License
140 stars 30 forks source link

Locator Error on v.05 #119

Closed digitizesuccess closed 6 months ago

digitizesuccess commented 7 months ago

I am unsure of how to troubleshoot this. Has anyone come across this error?

/usr/local/bin/python3 ilcbot.py -u xxx -p xxxx -t 'xxx' -ff -np 1 -nc -fa 200 --delay 2,20 --limits /Users/xxx/insta-likecom-bot/limits.json --ignoretags /Users/xxx/insta-likecom-bot/Ignorelist.txt Traceback (most recent call last): File "/Users/xxx/insta-likecom-bot/ilcbot.py", line 14, in from modules.insta import Insta File "/Users/xxx/insta-likecom-bot/modules/init.py", line 5, in from . import insta File "/Users/xxx/insta-likecom-bot/modules/insta.py", line 47, in from modules.locators import ( File "/Users/xxx/insta-likecom-bot/modules/locators.py", line 50, in @dataclass ^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1220, in dataclass return wrap(cls) ^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1210, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 958, in _process_class cls_fields.append(_get_field(cls, name, type, kw_only)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 815, in _get_field raise ValueError(f'mutable default {type(f.default)} for field ' ValueError: mutable default <class 'modules.locators.SaveLoginLocators'> for field save_login is not allowed: use default_factory

shine-jayakumar commented 7 months ago

Issue already raised #118

shine-jayakumar commented 7 months ago

This issue has been recognized and will be fixed soon.

shine-jayakumar commented 6 months ago

Issue fixed in latest version. The fix is compatible with newer versions as well.