Dentosal / python-sc2

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

Cannot import sc2 - dll error #183

Open jj01101010 opened 5 years ago

jj01101010 commented 5 years ago

Hi I am new to sc2 and I installed it tried to just import sc2 and got this error in my python idle Traceback (most recent call last): File "M:\Python36\Lib\site-packages\examples\protoss\cannon_rush.py", line 3, in import sc2 File "M:\Python36\lib\site-packages\sc2__init__.py", line 18, in from .data import * File "M:\Python36\lib\site-packages\sc2\data.py", line 2, in from s2clientprotocol import ( File "M:\Python36\lib\site-packages\s2clientprotocol\sc2api_pb2.py", line 7, in from google.protobuf import descriptor as _descriptor File "M:\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in from google.protobuf.pyext import _message ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden. what went wrong i dont know :(

jj01101010 commented 5 years ago

sry it is german but i hope you can read it :)

jj01101010 commented 5 years ago

and I also tryed to reinstall sc2 and starcraft 2 nothing worked. I use python 3.6

Dentosal commented 5 years ago

You need to upgrade your Python to 3.6.1 or 3.7. Found solution in this issue.