yolov7 icon indicating copy to clipboard operation
yolov7 copied to clipboard

module ‘test’ has no attribute ‘test’

Open william-wgw opened this issue 1 year ago • 5 comments

微信截图_20220730104651

william-wgw avatar Jul 30 '22 02:07 william-wgw

how to solve this problem??? thank you very much !

william-wgw avatar Jul 30 '22 02:07 william-wgw

Do you have any python package in you environment named test?

mkhoshbin72 avatar Jul 30 '22 20:07 mkhoshbin72

I meeted the same problem, and I have no package in my environment name test, it's strange!

seed42x avatar Feb 28 '23 08:02 seed42x

anybody has any idea?? I have the same issue when I run training not in my local but in Docker. I copy the files directly into docker container so there shouldn't be any difference between my local and Docker container but I keep having this error.

YCAyca avatar Apr 01 '24 12:04 YCAyca

Okay I solved the problem: when I run the code, it search finds test module from python path (usr/lib/python3.8/test.py), not the test.py from yolov7... Since I didn't have any other module named test in my working directory I think the issue was not this but apparently python path is the first one to check the modules rather than the current path. So I have changed the name of test.py file and I call with that name so I doesn't crash from ambiguity.

YCAyca avatar Apr 01 '24 13:04 YCAyca