Instapy: KeyError: 'username'

Created on 30 Jan 2018  路  9Comments  路  Source: timgrossmann/InstaPy

Expected Behavior

Script Start / Login

Current Behavior

Logged from file like_util.py, line 502 Traceback (most recent call last): File "/usr/lib64/python2.7/logging/__init__.py", line 851, in emit msg = self.format(record) File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format return fmt.format(record) File "/usr/lib64/python2.7/logging/__init__.py", line 467, in format s = self._fmt % record.__dict__ KeyError: 'username' Logged from file like_util.py, line 502

Possible Solution (optional)

InstaPy configuration

wontfix

Most helpful comment

Okey guys, it's not important issue,
in line 165 of instapy.py
replace self.logger with logger

self.logger = logging.LoggerAdapter(logger, extra)

should be

logger = logging.LoggerAdapter(logger, extra)

of get_instapy_logger() method ...
@tibor @flo1t @mxmzb @mkraffa @ShiftingKill @guilherme199
details

All 9 comments

It's happening to me too.

Same here

same here

However it doesn't seem to be a very severe issue, as it still works fine.

same here. it looks like verything else works normal, except the logging part. but you can check the stats using the db.

Okey guys, it's not important issue,
in line 165 of instapy.py
replace self.logger with logger

self.logger = logging.LoggerAdapter(logger, extra)

should be

logger = logging.LoggerAdapter(logger, extra)

of get_instapy_logger() method ...
@tibor @flo1t @mxmzb @mkraffa @ShiftingKill @guilherme199
details

@uluQulu thanks for the solutions! works fine now.

@uluQulu
nice one, works for me too,.
thanks!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CamiloB picture CamiloB  路  316Comments

Tachenz picture Tachenz  路  85Comments

cormo1990 picture cormo1990  路  99Comments

HCWcoder picture HCWcoder  路  79Comments

drogon34 picture drogon34  路  73Comments