MetaR-CNN icon indicating copy to clipboard operation
MetaR-CNN copied to clipboard

ImportError: sys.meta_path is None, Python is likely shutting down

Open Ze-Yang opened this issue 6 years ago • 10 comments

image When I run this code, I encounter this error. I don't know how to fix it. Your help is highly appreciated.

Ze-Yang avatar Oct 27 '19 05:10 Ze-Yang

i meet this error, too. Have you solved the problem?

Hxx2048 avatar Oct 31 '19 01:10 Hxx2048

That's maybe your environment is not right.

yanxp avatar Oct 31 '19 14:10 yanxp

I encountered the same problem when running my own dataset. However, I did not encounter this problem when running the author dataset. Have you solved the problem? Could you give me some suggestions?

Thank you very much.

cxcjcj avatar Dec 07 '19 08:12 cxcjcj

Yes. This is actually due to lib import problem. You should not add lib. in front of the import directory, which makes it malfunction.

Ze-Yang avatar Dec 07 '19 13:12 Ze-Yang

Thanks for your reply. Can you tell me which files need to be modified?------------------ 原始邮件 ------------------ 发件人: "Ze-Yang"[email protected] 发送时间: 2019年12月7日(星期六) 晚上9:18 收件人: "yanxp/MetaR-CNN"[email protected]; 抄送: "cxcjcj"[email protected];"Comment"[email protected]; 主题: Re: [yanxp/MetaR-CNN] ImportError: sys.meta_path is None, Python islikely shutting down (#12)

Yes. This is actually due to lib import problem. You should not add lib. in front of the import directory, which makes it malfunction.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

cxcjcj avatar Dec 07 '19 13:12 cxcjcj

Thanks for your reply. Can you tell me which files need to be modified?

cxcjcj avatar Dec 07 '19 13:12 cxcjcj

Thanks for your reply. Can you tell me which files need to be modified?

cxcjcj avatar Dec 07 '19 13:12 cxcjcj

Actually, if you don't modify the original code, this problem won't arise. For me, at that time, I just modified from xxx import zzz to from lib.xxx import zzz, for better debugging, which caused the above error. I am not sure whether your error is caused by the same reason with me. So please first check the import lines in the head of your execute file.

Ze-Yang avatar Dec 07 '19 14:12 Ze-Yang

Yes, this error only appeared on my dataset.

cxcjcj avatar Dec 07 '19 14:12 cxcjcj

i meet this error, too. Have you solved the problem?

I meet the same problem! Have you fixed it?!

JeremyLinky avatar Mar 14 '20 07:03 JeremyLinky