DmytroLitvinov / kuna

:snake: Python wrapper for Kuna exchange :currency_exchange: API
https://kuna.readthedocs.io/en/stable/
MIT License
19 stars 8 forks source link

AttributeError: module 'kuna' has no attribute 'KunaAPI' #80

Closed ibmua closed 3 years ago

ibmua commented 3 years ago
$ python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kuna
>>> graph_kuna = kuna.KunaAPI()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'kuna' has no attribute 'KunaAPI'

Інсталював версію з github.

В результаті просто імпортував код напряму з kuna.py а не через модуль. Працює, дуже дякую ^.^

welcome[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

kazanzhy commented 3 years ago

Спробуйте використати from kuna import KunaAPI

Фікс в PR https://github.com/DmytroLitvinov/kuna/pull/99

DmytroLitvinov commented 3 years ago

Closed in #99 .

DmytroLitvinov commented 3 years ago

Also, released new version 0.4.1. at PyPI