Jooi025 / BrawlStarsBot

Brawl stars bot for farming mastery in solo showdown
MIT License
151 stars 21 forks source link

problem in detection.py #22

Open bvsm21 opened 6 months ago

bvsm21 commented 6 months ago

this was the error when i execute the detection.py in vs code c:/Users/User/Downloads/BrawlStarsBot-main/BrawlStarsBot-main/modules/detection.py Traceback (most recent call last): File "c:\Users\User\Downloads\BrawlStarsBot-main\BrawlStarsBot-main\modules\detection.py", line 5, in from ultralytics import YOLO File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\ultralytics__init__.py", line 5, in from ultralytics.data.explorer.explorer import Explorer File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\ultralytics\data__init.py", line 3, in from .base import BaseDataset File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\ultralytics\data\base.py", line 15, in from torch.utils.data import Dataset File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch\utils\init__.py", line 4, in from .throughput_benchmark import ThroughputBenchmark File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch\utils\throughput_benchmark.py", line 2, in import torch._C ModuleNotFoundError: No module named 'torch._C'

jlavoieqc commented 4 months ago

You have python 3.12

bvsm21 commented 4 months ago

You have python 3.12

And?

jlavoieqc commented 4 months ago

You have python 3.12

And?

you need 3.11.6

bvsm21 commented 4 months ago

oh ok

You have python 3.12

And?

you need 3.11.6

let me see if works

bvsm21 commented 4 months ago

You have python 3.12

And?

you need 3.11.6

can u help me with this error when i execute main.py Traceback (most recent call last): File "c:\Users\User\Downloads\BrawlStarsBot-main\BrawlStarsBot-main\main.py", line 3, in from modules.windowcapture import WindowCapture File "c:\Users\User\Downloads\BrawlStarsBot-main\BrawlStarsBot-main\modules\windowcapture.py", line 7, in from constants import Constants File "c:\Users\User\Downloads\BrawlStarsBot-main\BrawlStarsBot-main\constants.py", line 3, in brawler_stats_dict = json.load(open("brawler_stats.json")) ^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'brawler_stats.json'

jlavoieqc commented 4 months ago

how do you run it u have to open a cmd on the main page where is the main.py and run pip install -r requirements.txt

This error FileNotFoundError: [Errno 2] No such file or directory: 'brawler_stats.json' is because the script didnt find the folder so just check the owner video guide but dont use pycharm cuz thats too much

https://youtu.be/v3ds6AGvcPU?si=hFT5MYMiJfdaA4i8

bvsm21 commented 4 months ago

how do you run it u have to open a cmd on the main page where is the main.py and run pip install -r requirements.txt

This error FileNotFoundError: [Errno 2] No such file or directory: 'brawler_stats.json' is because the script didnt find the folder so just check the owner video guide but dont use pycharm cuz thats too much

https://youtu.be/v3ds6AGvcPU?si=hFT5MYMiJfdaA4i8

how do you run it u have to open a cmd on the main page where is the main.py and run pip install -r requirements.txt

This error FileNotFoundError: [Errno 2] No such file or directory: 'brawler_stats.json' is because the script didnt find the folder so just check the owner video guide but dont use pycharm cuz thats too much

https://youtu.be/v3ds6AGvcPU?si=hFT5MYMiJfdaA4i8

now i cant install pytorch with conda it says that conda in not a batch file

jlavoieqc commented 4 months ago

how do you run it u have to open a cmd on the main page where is the main.py and run pip install -r requirements.txt This error FileNotFoundError: [Errno 2] No such file or directory: 'brawler_stats.json' is because the script didnt find the folder so just check the owner video guide but dont use pycharm cuz thats too much https://youtu.be/v3ds6AGvcPU?si=hFT5MYMiJfdaA4i8

how do you run it u have to open a cmd on the main page where is the main.py and run pip install -r requirements.txt This error FileNotFoundError: [Errno 2] No such file or directory: 'brawler_stats.json' is because the script didnt find the folder so just check the owner video guide but dont use pycharm cuz thats too much https://youtu.be/v3ds6AGvcPU?si=hFT5MYMiJfdaA4i8

now i cant install pytorch with conda it says that conda in not a batch file

ur on windows right

bvsm21 commented 3 days ago

yes