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

ImportError: cannot import name 'app' #1

Open
ai2010 opened this issue Jul 4, 2018 · 2 comments
Open

ImportError: cannot import name 'app' #1

ai2010 opened this issue Jul 4, 2018 · 2 comments

Comments

@ai2010
Copy link

ai2010 commented Jul 4, 2018

I'm trying to run the library as suggested (with python3) but I got the error:

Traceback (most recent call last): File "transform_replay.py", line 3, in <module> from pysc2.lib import app, features, point ImportError: cannot import name 'app'

Do you know how to fix it?

@narhen
Copy link
Owner

narhen commented Jul 4, 2018

Hi, @ai2010. looks like app has moved to absl in a later pysc2 version. I've updated master now. Try it out and let me know how it goes

@ai2010
Copy link
Author

ai2010 commented Jul 5, 2018

Thanks that's solved. However I think another error comes up:

pysc2.lib.remote_controller.RequestError: SC2APIProtocol.ResponseReplayInfo.Error.ParsingError: 'Possible corruption - Failed to open the map archive: /Users/Shared/Blizzard/Battle.net\Cache/57/71/5771b4faf1dc393ab3f5d83a0cdd086587b78671f7575b083a3131677d2932c7.s2ma'

I think the map folder (as specified in the pysc2 github should be /Applications/StarcraftII/Maps/ ?

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