Git Product home page Git Product logo

sharpy-starter-bot's People

Contributors

drinfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sharpy-starter-bot's Issues

ModuleNotFoundError

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?

ImportError: dlopen(sharpy-sc2/sc2pathlibp/sc2pathlib.so, 2): no suitable image found.

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`

ImportError: DLL load failed while importing sc2pathlib: The parameter is incorrect.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.