RootKit-Org / AI-Aimbot

World's Best AI Aimbot - CS2, Valorant, Fortnite, APEX, every game
GNU General Public License v3.0
1.34k stars 283 forks source link

ImportError: cannot import name 'is_jupyter' from 'utils.general' (D:\Projects\Python\AI-Aimbot-main\utils\general.py) #60

Closed FuckingToasters closed 1 year ago

FuckingToasters commented 1 year ago

The weird thing is, it worked fine before and since yesterday i have this issue every time i try to run the torch gpu version:

Traceback (most recent call last):
  File "D:\Projects\Python\AI-Aimbot-main\main_torch_gpu.py", line 217, in <module>
    main()
  File "D:\Projects\Python\AI-Aimbot-main\main_torch_gpu.py", line 95, in main
    model = torch.hub.load('ultralytics/yolov5', 'yolov5s',
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\hub.py", line 542, in load
    model = _load_local(repo_or_dir, model, *args, **kwargs)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\hub.py", line 572, in _load_local
    model = entry(*args, **kwargs)
  File "C:\Users\Administrator/.cache\torch\hub\ultralytics_yolov5_master\hubconf.py", line 93, in yolov5s
    return _create('yolov5s', pretrained, channels, classes, autoshape, _verbose, device)
  File "C:\Users\Administrator/.cache\torch\hub\ultralytics_yolov5_master\hubconf.py", line 33, in _create
    from models.common import AutoShape, DetectMultiBackend
  File "C:\UsersAdministrator/.cache\torch\hub\ultralytics_yolov5_master\models\common.py", line 29, in <module>
    from utils.general import (LOGGER, ROOT, Profile, check_requirements, check_suffix, check_version, colorstr,
ImportError: cannot import name 'is_jupyter' from 'utils.general' (D:\Projects\Python\AI-Aimbot-main\utils\general.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Projects\Python\AI-Aimbot-main\main_torch_gpu.py", line 221, in <module>
    traceback.print_exception(e)
TypeError: print_exception() missing 2 required positional arguments: 'value' and 'tb'
Hexploit85 commented 1 year ago

Same here

Qfc9 commented 1 year ago

It's fixed now