SPM_toolkit icon indicating copy to clipboard operation
SPM_toolkit copied to clipboard

ImportError: No module named config

Open andra-pumnea opened this issue 6 years ago • 3 comments

I got this error while trying to run main_quora.py in SSE. Where can I find this file or how do I create it? Thanks!

andra-pumnea avatar Jul 01 '18 17:07 andra-pumnea

Hi, the config file just defines some file paths. Actually, I didn't use the information in config file, you can delete this line.

lanwuwei avatar Jul 01 '18 18:07 lanwuwei

when I run main_mnli.py in SSE, I had the same error, "no module named config". After commenting out all "import config" from <mnli.py>,<torch_util.py> and main_mnli.py>, I have a nameError: global name 'config' is not defined in main_mnli.py. I'm trying to create a config file, but I'm wondering if you can upload your <config.py> just for reference. Thank you in advance

funnytestingcase avatar Jan 07 '21 16:01 funnytestingcase

Sorry about the inconvenience, I just updated the config file: https://github.com/lanwuwei/SPM_toolkit/blob/master/SSE/config.py

Best, Wuwei

From: funnytestingcase [email protected] Reply-To: lanwuwei/SPM_toolkit [email protected] Date: Thursday, January 7, 2021 at 8:12 AM To: lanwuwei/SPM_toolkit [email protected] Cc: Wuwei Lan [email protected], Comment [email protected] Subject: Re: [lanwuwei/SPM_toolkit] ImportError: No module named config (#7)

when I run main_mnli.py in SSE, I had the same error, "no module named config". After commenting out all "import config" from <mnli.py>,<torch_util.py> and main_mnli.py>, I have a nameError: global name 'config' is not defined in main_mnli.py. I'm trying to create a config file, but I'm wondering if you can upload your <config.py> just for reference. Thank you in advance

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/lanwuwei/SPM_toolkit/issues/7#issuecomment-756213736, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACDANXAJML4AKVDDHWBLAN3SYXMNJANCNFSM4FHZTFEA.

lanwuwei avatar Jan 07 '21 19:01 lanwuwei