multi-model-server
multi-model-server copied to clipboard
Could not find or load class error on startup
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 : Thanks for reporting this. We will look into this.
Hey,
I am also facing the same issue on Windows 10:-
- 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
What is the status of this issues?
This seems to happen when installing MMS in dev mode (pip install -e .
)
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/*")))
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/*")))
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.