pysc2-replay icon indicating copy to clipboard operation
pysc2-replay copied to clipboard

ImportError: cannot import name 'app'

Open ai2010 opened this issue 6 years ago • 2 comments

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?

ai2010 avatar Jul 04 '18 14:07 ai2010

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

narhen avatar Jul 04 '18 20:07 narhen

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/ ?

ai2010 avatar Jul 05 '18 11:07 ai2010