jmaliksi / blaseball-mike

Totally not a microphone to the blaseball API
MIT License
14 stars 10 forks source link

'Team' object has no attribute 'get_full_name' #146

Closed CrisFlagg closed 3 years ago

CrisFlagg commented 3 years ago

I am unable to use the get_full_name() method

teams = Team.load_all()
for t in teams.keys():
    tm = teams[t]
    print( tm.get_full_name() )

Gives me the error: AttributeError: 'Team' object has no attribute 'get_full_name'

Is this an error in the way I'm loading the teams or do I need to call the method differently?

Version: blaseball_mike-6.5.0

Edgarware commented 3 years ago

Hmmm, that code snippet you posted works on my install. What's your python version and OS?

CrisFlagg commented 3 years ago

Ubuntu 20.04.3 LTS python version : 3.7.4

Edgarware commented 3 years ago

Ah, that would be it. We currently only support Python 3.8+ but there are some old versions in PyPI for 3.6 & 3.7 back when we supported those.

CrisFlagg commented 3 years ago

Fantastic, I will upgrade.