Dentosal / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
587 stars 182 forks source link

Issue with pixel_map.py #266

Closed danielvschoor closed 5 years ago

danielvschoor commented 5 years ago

After the update on 25/04/2019, I am receiving the following error on all the bots I have created which have worked previously:

File "%APPDATA%\Roaming\Python\Python37\site-packages\sc2\pixel_map.py", line 10, in init assert self.bits_per_pixel % 8 == 0, "Unsupported pixel density"

It seems like self.bits_per_pixel is equal to 1.

BurnySc2 commented 5 years ago

Yeah with the new SC2 client version 4.8.5, new things were added to the API and some things were broken without backwards compatibility. Most things have been fixed on the develop branch of this library / repository.

You can install it with the command pip install --upgrade --force-reinstall https://github.com/Dentosal/python-sc2/archive/develop.zip or instead of pip you can go into the python folder and use the command python -m pip, if it does not work for you. If you get a no module found named pipenv error, install pipenv pip install pipenv.

qq309381 commented 5 years ago

good