ImportError: cannot import name Auth


#1

having trouble using the python resin-sdk. tried this 'module' object has no attribute when using Python SDK but it still doesnt work. can someone point me in the right directions? thanks! :slight_smile:


#4

Hey @maole,

Sorry for the troubles, we will add a getting started guide to our Python SDK docs really soon.
You can start using the sdk by doing

from resin import Resin

resin = Resin()
resin.auth.<function>

#5

Here’s my code. I replaced my email and password.

from resin import Resin

resin = Resin()
credentials = {‘username’: ‘mymail@yahoo.com’, ‘password’: ‘******’}
resin.auth.login(**credentials)

i keep getting this error:

File “resin.py”, line 1, in
from resin import Resin
File “/data/resin.py”, line 1, in
from resin import Resin
ImportError: cannot import name Resin

What am i doing wrong?


#6

i also tried Auth btwe.


#7

@maoie, How did you install the python sdk?