On Nov 26, 2021, at 3:48 AM, Eva Vriens <evav...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/678b23dc-9c53-4c81-9195-f0cb7fda44fbn%40googlegroups.com.
On Nov 26, 2021, at 8:18 AM, ch...@otree.org wrote:
On Nov 26, 2021, at 8:25 AM, ch...@otree.org wrote:
Ok I see now. That is just a change to what is displayed when you use print(). In oTree 5, printing a player object shows multiple attributes, whereas in oTree 3 it only showed their ID in subsession. That should not change the functionality of your game.
Error during __repr__ of Player: InvalidRequestError("This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)\n(builtins.TypeError) cannot pickle 'weakref' object\n[SQL: UPDATE otree_session SET _vars=? WHERE otree_session.id = ?]\n[parameters: [...]]")
subsession.session.vars['group_matrix'] = group_matrix
On Nov 26, 2021, at 9:01 AM, Eva Vriens <evav...@gmail.com> wrote:
Ok, I understand, thanks for the reply. For some reason it is not filling in the player IDs in the group matrix though. I'm getting the following error message:
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/67b13449-fd42-4fea-a011-c2bcbc6b60e9n%40googlegroups.com.