mmtracking icon indicating copy to clipboard operation
mmtracking copied to clipboard

ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__

Open kokeliang opened this issue 3 years ago • 3 comments

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The bug has not been fixed in the latest version.

Describe the bug ImportWarning: can't resolve package from spec or package, falling back on name and path

Reproduction

  1. What command or script did you run?
python ./tools/train.py ./configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot17-private-half.py  --work-dir ./work_dirs/bytetrack/

Error traceback

C:\anaconda\envs\open-mmlab\lib\importlib\_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  return f(*args, **kwds)

Hi. Did anyone meet this warning? How did you solve it ? Thanks

kokeliang avatar Mar 07 '22 10:03 kokeliang

Yeah,we have also noticed this warning in the passed few days,but have no time to study it. We will fix it as soon as possible. Would you like to try to fix it?

JingweiZhang12 avatar Mar 07 '22 15:03 JingweiZhang12

Yes. I tried to eliminate the warning but without success.

kokeliang avatar Mar 07 '22 21:03 kokeliang

We find that It's the problem of the third library lap. Maybe you can propose an issue in their codebase.

JingweiZhang12 avatar Mar 08 '22 06:03 JingweiZhang12