khazhyk / osuapi

Simple osu api wrapper that I can use with both requests and aiohttp
http://osuapi.readthedocs.io/en/latest/index.html
MIT License
16 stars 8 forks source link

Circular import ! #8

Closed Renondedju closed 7 years ago

Renondedju commented 7 years ago

I simply can't import ReqConnector due to a circular import ...

Traceback (most recent call last): File "UsoDiscord.py", line 21, in from osuapi import OsuMode, BeatmapStatus, OsuApi, ReqConnector ImportError: cannot import name 'ReqConnector'

(It was working fine on an old machine)

khazhyk commented 7 years ago

Cannot reproduce.

What version are you on? You may be out of date.

>>> from osuapi import OsuMode, BeatmapStatus, OsuApi, ReqConnector
>>> 
Renondedju commented 7 years ago

python 3.5.3 I'm using ARMBIAN 5.31 stable Debian GNU/Linux 8 (jessie) 4.11.6-sunxi on a cubieboard 3 (cubietruck) And i dowloaded like 4 hours ago your library

khazhyk commented 7 years ago

What version of the library are you using?

khazhyk commented 7 years ago

Oh, caveat: in order to be able to import ReqConnector, you must have 'requests' installed. This perhaps isn't as clear as it should be.

Renondedju commented 7 years ago

oh thats maybe why, can you tell me how to install requests ?

Renondedju commented 7 years ago

And the version of the library is the last one

khazhyk commented 7 years ago

The same as installing osuapi - pip install requests

Renondedju commented 7 years ago

This is working now fine ! Thanks !