-
Notifications
You must be signed in to change notification settings - Fork 834
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
Defining the model serving class with full name doesn't currently work #533
Comments
By the way, I'm really happy with this change, since (after this bug is fixed) I can throw away my hack of setting up a dummy serving class that just forwards the requests to the proper one. |
Thanks. Any chance you can do a PR and check why these tests are not adequate: seldon-core/python/tests/test_microservice.py Lines 94 to 109 in 250bf16
|
I'll try to have a look. If I find the unit test problem I'll do a PR |
Found the problem, you are still relying on the fact that the filename is the same as the class name. In python the filename should be snake case while class names are camel case, so this won't usually be the case. I'll fix the unit test and the code and will provide a PR. |
Thanks. This is great. |
The fix is in the PR, let me know if there is anything else you need. |
Closed as merged. |
…ommand (#533) * Use positional args for server name in CLI status subcommand Requiring a name passed by flag was inconsistent with the other commands requiring resource names. * Remove now-unused constant
In line 194 of microservice.py you are trying to load a module from args.interface_name. The problems is that at this point, interface name is the full class name (e.g. package.module.Class) so import_lib.import module fails.
This line has to be changed from
interface_file = importlib.import_module(args.interface_name)
tointerface_file = importlib.import_module(parts[0])
The text was updated successfully, but these errors were encountered: