OlegYurchik / pyInstagram

This is a simple and easy-to-use library for interacting with the Instagram. The library works through the web interface of the Instagram and does not depend on the official API
MIT License
232 stars 49 forks source link

NameError: name 'key' is not defined #94

Closed hazirliver closed 3 years ago

hazirliver commented 3 years ago

Не удается начать взаимодействовать с библиотекой. После успешной установки (Successfully built instagram, Successfully installed aiohttp-3.7.2 async-timeout-3.0.1 instagram-2.1.1 multidict-5.0.0 typing-extensions-3.7.4.3 yarl-1.6.2) пытаюсь запустить первый блок кода из Readme про Цукерберга, однако вылезает следующая ошибка:

Traceback (most recent call last):
  File "/home/arseny/Documents/pyInstagram/source.py", line 4, in <module>
    account = Account("zuck")
  File "/home/arseny/Documents/pyInstagram/instagram/entities.py", line 11, in __new__
    if not str(key) in cls.cache:
NameError: name 'key' is not defined

Аналогичные ошибки возникают при любых других примерах кода. Проверил и на винде (Win10 Pro), и на Ununtu 18.04LTS, python 3.7.4, python 3.6 -- везде одинаковые ошибки.

AzatKaparov commented 3 years ago

У меня точно так же. Буквально вчера всё работало, а сейчас не могу даже запрос отправить

workpro commented 3 years ago

Присоединяюсь! придется ждать автора @OlegYurchik

sergeyleyko commented 3 years ago

вот это тестирование!

gunjubas commented 3 years ago

+1.

Traceback (most recent call last): File "", line 1, in File "/instagram/entities.py", line 11, in new if not str(key) in cls.cache: NameError: name 'key' is not defined

OlegYurchik commented 3 years ago

Fixed