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

Fix "import imp" warning message for the usage command #271

Closed
bhavinthaker opened this issue Jan 11, 2018 · 1 comment
Closed

Fix "import imp" warning message for the usage command #271

bhavinthaker opened this issue Jan 11, 2018 · 1 comment

Comments

@bhavinthaker
Copy link

Instead of using "import imp", I suggest to use "import importlib" based on the error message below:

$ mxnet-model-export
/Users/thakerb/anaconda3/envs/mms_feb_2018_1/lib/python3.6/site-packages/mms/export_model.py:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
usage: mxnet-model-export [-h] --model-name MODEL_NAME --model-path MODEL_PATH
[--service-file-path SERVICE_FILE_PATH]
mxnet-model-export: error: the following arguments are required: --model-name, --model-path

@jesterhazy
Copy link
Contributor

duplicate of #254

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

2 participants