Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\anton\\anaconda3\\envs\\ml\\lib\\site-packages\\mmf\\configs\\defaults.yaml' #479

Closed
AntoninaKOR opened this issue Aug 15, 2020 · 3 comments

Comments

@AntoninaKOR
Copy link

AntoninaKOR commented Aug 15, 2020

πŸ› Bug

Windows 10, Anaconda3, Python 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
I installed mmf using pip install β€”-pre mmf.
mmf 's version =0.0rc10
Then I did mmf_convert_hm --zip_file <zip_file_path> --password and have a error:
File "c:\users\anton\anaconda3\envs\ml\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\anton\anaconda3\envs\ml\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\anton\Anaconda3\envs\ml\Scripts\mmf_convert_hm.exe_main
.py", line 7, in
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf_cli\hm_convert.py", line 164, in main
converter = HMConverter()
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf_cli\hm_convert.py", line 26, in init
self.configuration = Configuration()
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf\utils\configuration.py", line 205, in init
self._default_config = self._build_default_config()
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf\utils\configuration.py", line 222, in build_default_config
default_config = load_yaml(self.default_config_path)
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf\utils\configuration.py", line 30, in load_yaml
raise e
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf\utils\configuration.py", line 23, in load_yaml
mapping = OmegaConf.load(abs_f)
File "c:\users\anton\anaconda3\envs\ml\lib\site-packages\omegaconf\omegaconf.py", line 246, in load
with io.open(os.path.abspath(file
), "r", encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\users\anton\anaconda3\envs\ml\lib\site-packages\mmf\configs\defaults.yaml'

@vedanuj
Copy link
Contributor

vedanuj commented Aug 16, 2020

Can you provide more details about your environment? And this should be reported as a bug.

@ariwaranosai
Copy link
Contributor

source package in pypi don't contains with configs dir.
You can confirm this by downloading the mmf-1.0.0rc10.tar.gzΒ (160.5 kB)
@AntoninaKOR setup.py install from source code is better way to walk around.

facebook-github-bot pushed a commit that referenced this issue Aug 19, 2020
Summary:
add config in MANIFEST.in to package yaml in mmf/configs.

see #479

Pull Request resolved: #488

Reviewed By: vedanuj

Differential Revision: D23202899

Pulled By: apsdehal

fbshipit-source-id: 6544e20e458c103912cdc9abbc4cf86d0b71ff73
@AntoninaKOR
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants