upbit / pixivpy

Pixiv API for Python
https://pypi.org/project/PixivPy3/#files
The Unlicense
1.8k stars 147 forks source link

PAPI login failed #89

Closed Xdynix closed 5 years ago

Xdynix commented 5 years ago
>>> from pixivpy3 import PixivAPI
>>> api = PixivAPI()
>>> api.login(email, password)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python37\lib\site-packages\pixivpy3\api.py", line 76, in login
    return self.auth(username=username, password=password)
  File "C:\Python37\lib\site-packages\pixivpy3\api.py", line 90, in auth
    if self.hosts == "https://app-api.pixiv.net":
AttributeError: 'PixivAPI' object has no attribute 'hosts'
>>> import pixivpy3
>>> pixivpy3.__version__
'3.5.0'
upbit commented 5 years ago

Sorry for the late reply, please update to 3.5.1 to resolve this issue.