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

Could not find or load class error on startup

Open BrianHanechak opened this issue 5 years ago • 6 comments

In versions 1.0.5 through current, when I try to start mxnet-model-server on my Windows box, I get the following error:

Error: Could not find or load main class com.amazonaws.ml.mms.ModelServer

If I downgrade to 1.0.4 or earlier, I am able to start it correctly.

BrianHanechak avatar Sep 11 '19 18:09 BrianHanechak

@BrianHanechak : Thanks for reporting this. We will look into this.

vdantu avatar Sep 12 '19 01:09 vdantu

Hey,

I am also facing the same issue on Windows 10:-

image

  • multi-model-sevrer version == 1.1.0

I tried downgrading to version 1.0.4, but it looks like that version is no longer supported. The minimum version that I could saw was 1.0.8.1. I tried downgrading from my current version to this and did the same steps again, but still facing the same issue.

Any pointers/help would be highly appreciated.

Thanks Shaksham

shaksham95 avatar Jan 10 '20 05:01 shaksham95

What is the status of this issues? This seems to happen when installing MMS in dev mode (pip install -e .)

leezu avatar Feb 06 '20 00:02 leezu

This is happening due to this line: https://github.com/awslabs/multi-model-server/blob/4d45a1c51e414c5d8bbfecc99b3b460de221f6f5/mms/model_server.py#L103

because the forward slashes don't work in windows. For it to be OS independent, it should be something like this:

".;{}".format(os.path.normpath(os.path.join(mms_home, "mms/frontend/*")))

mikeobr avatar Feb 25 '20 20:02 mikeobr

Still have the same error after the modification from @mikeobr, any progress about this error?

This is happening due to this line: https://github.com/awslabs/multi-model-server/blob/4d45a1c51e414c5d8bbfecc99b3b460de221f6f5/mms/model_server.py#L103

because the forward slashes don't work in windows. For it to be OS independent, it should be something like this:

".;{}".format(os.path.normpath(os.path.join(mms_home, "mms/frontend/*")))

carter54 avatar Mar 17 '20 06:03 carter54

The fix should be like: ".{}{}".format(os.pathsep, os.path.join(mms_home, "mms", "frontend", "*")) to be os independent. There's an issue with the path separator and path component separator.

dfung avatar Jul 22 '20 19:07 dfung