79668562

Date: 2025-06-17 06:38:26
Score: 1
Natty:
Report link

I have faced the same problem and stuck for 2 hours and only solution is to recheck the files .And in file do not create something like microprocessor like this file because ultralytics already contain this file and due to this you recive the error

here is error
ImportError: cannot import name 'YOLO' from partially initialized module 'ultralytics'
And this is my project structure "machine learning /object detection/multiprocessing.py"
and error is "ultralyticstorchmultiprocessing (your file) → ultralytics again..."

solution is :

change its name

rename from multiprocessing.py to something else, like my_process.py.

also what is circular import ?

A circular import is when:

    File A imports File B

    File B imports File A
Reasons:
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: k_ninja