multi-model-server icon indicating copy to clipboard operation
multi-model-server copied to clipboard

Fix "import imp" warning message for the usage command

Open bhavinthaker opened this issue 8 years ago • 1 comments

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

bhavinthaker avatar Jan 11 '18 21:01 bhavinthaker

duplicate of #254

jesterhazy avatar Jan 12 '18 00:01 jesterhazy