Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in detection.py #22

Open
bvsm21 opened this issue Mar 24, 2024 · 8 comments
Open

problem in detection.py #22

bvsm21 opened this issue Mar 24, 2024 · 8 comments

Comments

@bvsm21
Copy link

bvsm21 commented Mar 24, 2024

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'

@bvsm21 bvsm21 changed the title in detection.py problem in detection.py Mar 25, 2024
@jlavoieqc
Copy link

You have python 3.12

@bvsm21
Copy link
Author

bvsm21 commented May 28, 2024

You have python 3.12

And?

@jlavoieqc
Copy link

You have python 3.12

And?

you need 3.11.6

@bvsm21
Copy link
Author

bvsm21 commented May 28, 2024

oh ok

You have python 3.12

And?

you need 3.11.6

let me see if works

@bvsm21
Copy link
Author

bvsm21 commented May 28, 2024

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
Copy link

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
Copy link
Author

bvsm21 commented Jun 3, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants