Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'pyspiel' has no attribute 'GameInfo' #503

Closed
willmcgowan opened this issue Feb 16, 2021 · 7 comments
Closed

module 'pyspiel' has no attribute 'GameInfo' #503

willmcgowan opened this issue Feb 16, 2021 · 7 comments
Assignees

Comments

@willmcgowan
Copy link

Error thrown when trying to declare the GameInfo of a custom game

@lanctot
Copy link
Collaborator

lanctot commented Feb 16, 2021

We are going to need more. Can you send us a link to the code, or copy it here? Did you start by copying an existing game?

@willmcgowan
Copy link
Author

I copied the code provided in tic_tac_toe.py into a Jupyter notebook and got the error

@lanctot
Copy link
Collaborator

lanctot commented Feb 16, 2021

Did you use pip to install OpenSpiel? If so, that will be why. We only added GameInfo recently, after the latest release used by the pip package.

@willmcgowan
Copy link
Author

Yes I did use pip .

@lanctot
Copy link
Collaborator

lanctot commented Feb 16, 2021

Ah yeah that won't work, the python game structure is too new. You will have to build from source or use the old python tic_tac_toe.py in the 0.2.0 release.

It would make sense to do a minor release to update the pip version since the recent python game overhaul. I will do it in the next few weeks, please leave the issue open for me as a reminder.

@lanctot lanctot self-assigned this Feb 16, 2021
@lanctot
Copy link
Collaborator

lanctot commented Feb 19, 2021

It would make sense to do a minor release to update the pip version since the recent python game overhaul. I will do it in the next few weeks, please leave the issue open for me as a reminder.

Just a quick update that I'm putting together a release in order to fix this. It necessitated a few other fixes (like #507 and 13c81e5), and I wrote a test script for the pip packages-- which caught said things :) ... anyway, it'll be large enough that we're going to stamp it as 0.3.0. So, if not next week then hopefully the week after.

@lanctot
Copy link
Collaborator

lanctot commented Feb 25, 2021

Ok, we've put out a release: #512, which should fix this.

Full details: https://github.com/deepmind/open_spiel/releases/tag/v0.3.0

(You will need to uninstall your pip package and re-install it.)

@lanctot lanctot closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants