drinfy / sharpy-starter-bot Goto Github PK
View Code? Open in Web Editor NEWStarter bot using sharpy-sc2 and python-sc2 for playing Starcraft 2 using sc2 api.
License: The Unlicense
Starter bot using sharpy-sc2 and python-sc2 for playing Starcraft 2 using sc2 api.
License: The Unlicense
Initialization Failure
When I try to run the bot with python run_custom.py -m GoldenWallLE -p1 terranbot -p2 ai
:
PS E:\Dev\Python\bot\sharpy-starter-bot-master> python run_custom.py -m GoldenWallLE -p1 terranbot -p2 ai
E:\Dev\Python\bot\sharpy-starter-bot-master\venv\lib\site-packages\aiohttp\helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def noop(*args, **kwargs): # type: ignore
Traceback (most recent call last):
File "run_custom.py", line 5, in <module>
from terranbot.bot import TerranBot
File "E:\Dev\Python\bot\sharpy-starter-bot-master\terranbot\bot.py", line 4, in <module>
from sharpy.combat.group_combat_manager import GroupCombatManager
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\combat\__init__.py", line 8, in <module>
from .micro_rules import MicroRules
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\combat\micro_rules.py", line 9, in <module>
from .protoss import *
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\combat\protoss\__init__.py", line 11, in <module>
from .micro_phoenixes import MicroPhoenixes
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\combat\protoss\micro_phoenixes.py", line 9, in <module>
from sharpy.managers.core import UnitValue
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\managers\__init__.py", line 1, in <module>
from sharpy.managers.core.manager_base import ManagerBase
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\managers\core\__init__.py", line 6, in <module>
from .action_manager import ActionManager
File "E:\Dev\Python\bot\sharpy-starter-bot-master\sharpy-sc2\sharpy\managers\core\action_manager.py", line 3, in <module>
from sc2.dicts.unit_train_build_abilities import TRAIN_INFO
ModuleNotFoundError: No module named 'sc2.dicts'
But I already download sc2 package. Is it because the version of sc2 is inconsistent?
python ladder_zip.py -n protoss
upload.
request match.
got failted InitializationError:
https://sc2ai.net/matches/520007/
my mac and windows both got this failture. I run ok in local pc.
Hello.
During the execution of the command python run_custom.py -m GoldenWallLE -p1 terranbot -p2 ai
, the following error occurs:
ImportError: dlopen(sharpy-sc2/sc2pathlibp/sc2pathlib.so, 2): no suitable image found. Did find: sharpy-sc2/sc2pathlibp/sc2pathlib.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 /Users/mikhailsidorov/dev/my/sharpy-starter-bot/sharpy-sc2/sc2pathlibp/sc2pathlib.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
OS: Mac OS Big Sur 11.2
Python version: Python 3.7.8
Steps to reproduce:
git clone --recursive https://github.com/DrInfy/sharpy-starter-bot
cd sharpy-starter-bot
python3.7 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cd sharpy-sc2
pip install -r requirements.txt
cd sharpy-sc2/python-sc2
pipenv install
python run_custom.py -m GoldenWallLE -p1 terranbot -p2 ai
Full traceback:
Traceback (most recent call last):
File "run_custom.py", line 4, in <module>
from protossbot.bot import ProtossBot
File "/Users/mikhailsidorov/dev/my/sharpy-starter-bot/protossbot/bot.py", line 5, in <module>
from sharpy.knowledges import KnowledgeBot
File "sharpy-sc2/sharpy/knowledges/__init__.py", line 1, in <module>
from .knowledge import Knowledge
File "sharpy-sc2/sharpy/knowledges/knowledge.py", line 9, in <module>
from sharpy.managers.core import *
File "sharpy-sc2/sharpy/managers/__init__.py", line 1, in <module>
from sharpy.managers.core.manager_base import ManagerBase
File "sharpy-sc2/sharpy/managers/core/__init__.py", line 8, in <module>
from .zone_manager import ZoneManager
File "sharpy-sc2/sharpy/managers/core/zone_manager.py", line 5, in <module>
import sc2pathlibp
File "sharpy-sc2/sc2pathlibp/__init__.py", line 1, in <module>
from .path_finder import PathFinder
File "sharpy-sc2/sc2pathlibp/path_finder.py", line 1, in <module>
from .sc2pathlib import PathFind
ImportError: dlopen(sharpy-sc2/sc2pathlibp/sc2pathlib.so, 2): no suitable image found. Did find:
sharpy-sc2/sc2pathlibp/sc2pathlib.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/mikhailsidorov/dev/my/sharpy-starter-bot/sharpy-sc2/sc2pathlibp/sc2pathlib.so: unknown file type, first eight
bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00`
Traceback (most recent call last):
File "run_custom.py", line 4, in <module>
from protossbot.bot import ProtossBot
File "C:\Users\sirda\sharpy-starter-bot\protossbot\bot.py", line 5, in <module>
from sharpy.knowledges import KnowledgeBot
File "sharpy-sc2\sharpy\knowledges\__init__.py", line 1, in <module>
from .knowledge import Knowledge
File "sharpy-sc2\sharpy\knowledges\knowledge.py", line 9, in <module>
from sharpy.managers.core import *
File "sharpy-sc2\sharpy\managers\__init__.py", line 1, in <module>
from sharpy.managers.core.manager_base import ManagerBase
File "sharpy-sc2\sharpy\managers\core\__init__.py", line 8, in <module>
from .zone_manager import ZoneManager
File "sharpy-sc2\sharpy\managers\core\zone_manager.py", line 6, in <module>
import sc2pathlibp
File "sharpy-sc2\sc2pathlibp\__init__.py", line 1, in <module>
from .path_finder import PathFinder
File "sharpy-sc2\sc2pathlibp\path_finder.py", line 1, in <module>
from .sc2pathlib import PathFind
ImportError: DLL load failed while importing sc2pathlib: The parameter is incorrect.
What would this mean? I just downloaded the repo and pip installed the modules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.