Aedial / novelai-api

Python API for the NovelAI REST API
https://aedial.github.io/novelai-api/
MIT License
129 stars 17 forks source link

Fails to launch #2

Closed Gnurro closed 3 years ago

Gnurro commented 3 years ago

Creating an API object using

from novelai_api import *

api = NovelAI_API(1, 'properUsername', 'properPassword')

fails with this error:

...\venv\lib\site-packages\novelai_api\NovelAI_API.py:42: RuntimeWarning: coroutine 'High_Level.login' was never awaited
  self.high_level.login(username, password)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

I don't have any experience with async, and the lack of documentation makes it hard to figure out what's going on.

Gnurro commented 3 years ago

It's working for me now. This was down to my lack of experience with the used libraries. I minimalist example would be neat for less experienced users like me, though.

Closing due to having solved it.