Reputation: 11
I installed ultralytics using pip:
pip install ultralytics
I ran this code:
from ultralytics import YOLO
model = YOLO("yolo11n-pose.pt")
I am getting following error:
File "\computer_vision\Yoga_with_AI.venv\Lib\site-packages\ultralytics\utils\downloads.py", line 297, in safe_run preexec_fn=os.setsid, ^^^^^^^^^ AttributeError: module 'os' has no attribute 'setsid'. Did you mean: 'getpid'?
I was expecting no errors. Could someone guide me how to fix this. (I do not want to change the downloaded source code in site-packages\ultralytics\utils\downloads.py)
Upvotes: 0
Views: 125
Reputation: 13
I also had this problem with the latest version (8.3.41). Just install an earlier version : pip install ultralytics==8.3.40
Upvotes: 0