wrrulos / mcptool

Pentesting tool for Minecraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throws an error when run .bat

irvinglink opened this issue · comments

Versions
OS: Windows 10
Python version: 3.9.5
Node JS: 16.6.1
Java version: 17

Steps

  1. I already run the install_modules.bat

Note I remove my path, just leave the src MCPTool path

Traceback (most recent call last):
  File "main.py", line 6, in <module>
    from src.startup import Startup
  File "src\startup.py", line 10, in <module>
    from src.menu.command_input import CommandInput
  File "src\menu\command_input.py", line 6, in <module>
    from src.menu.commands import commands
  File "src\menu\commands.py", line 5, in <module>
    from src.commands.server import server_command
  File "src\commands\server.py", line 3, in <module>
    from src.minecraft.get_minecraft_server_data import GetMinecraftServerData
  File "src\minecraft\get_minecraft_server_data.py", line 6, in <module>
    from src.api.api import convert_server_data
  File "src\api\api.py", line 8, in <module>
    from src.api.minecraft_server_data import MinecraftServerData
  File "src\api\minecraft_server_data.py", line 13, in <module>
    from src.api.ping_as_java_and_bedrock_in_one_time import status
  File "src\api\ping_as_java_and_bedrock_in_one_time.py", line 7, in <module>
    async def status(host: str) -> JavaStatusResponse | BedrockStatusResponse:
TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'ABCMeta'

Solution
Add on the first line from __future__ import annotations to src\api\ping_as_java_and_bedrock_in_one_time.py