oTree Forum >

AttributeError: module 'otree.models.subsession' has no attribute 'get_players'

#1 by Lorenzo (edited )

Dear all,

I'm finding this error message: AttributeError: module 'otree.models.subsession' has no attribute 'get_players'
I attach the part on the script in which i would need "Get_players". How can I use it? I do not understand where is the problem and why oTree do not recognise it.

#2 by JonasF (edited )

Could you show a bit more of the code before this part to make it clearer in which part of you code you are using subsession.get_players()? The code itself looks okay to me.

Write a reply

Set forum username