'Why is there an attribute error when im trying to import Instaloader?

I got an error saying AttributeError: 'LockedStream' object has no attribute 'encoding' when im trying to import Instaloader. Anyone seems to know why?

Here's the screenshot of the error

Been searching on github and here in stackoverflow but can't seem to find a solution



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source