Skip to content

error when using python games with C++ CFR algorithm #905

@VitamintK

Description

@VitamintK

I get an error bad_weak_ptr when I try to use python games with C++ CFR. I'm 99% sure this used to work, but sometime over the past half-year it stopped working.

Tested on both Mac OS and Ubuntu with a fresh install:

>>> import pyspiel
>>> from open_spiel.python.games import kuhn_poker
>>> pyspiel.CFRSolver(kuhn_poker.KuhnPokerGame())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: bad_weak_ptr

>>> pyspiel.CFRSolver(pyspiel.load_game("python_kuhn_poker"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: bad_weak_ptr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions