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

Issue with pixel_map.py #266

Closed
danielvschoor opened this issue Apr 26, 2019 · 2 comments
Closed

Issue with pixel_map.py #266

danielvschoor opened this issue Apr 26, 2019 · 2 comments

Comments

@danielvschoor
Copy link

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
Copy link
Collaborator

BurnySc2 commented Apr 26, 2019

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
Copy link

good

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

3 participants