kubeflow / fairing

Python SDK for building, training, and deploying ML models
Apache License 2.0
337 stars 144 forks source link

Error on running fairing ames model example #273

Open chaitanyak52 opened 5 years ago

chaitanyak52 commented 5 years ago

/kind bug

I am trying to run the ames model prediction using fairing as per the readme at https://github.com/kubeflow/fairing/tree/master/examples/prediction on cloud and i see pod the following error

seldon_core.microservice:main:261 - INFO: Starting microservice.py:main

2019-06-06 11:12:53,898 - seldon_core.microservice:main:292 - INFO: Annotations: {}

Traceback (most recent call last):

File "/usr/local/bin/seldon-core-microservice", line 11, in

sys.exit(main())

File "/usr/local/lib/python3.6/site-packages/seldon_core/microservice.py", line 294, in main

interface_file = importlib.import_module(args.interface_name)

File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 994, in _gcd_import

File "", line 971, in _find_and_load

File "", line 953, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'HousingServe' Environment:

Can you please let me know where was this example run. Is it run on minikube or gcp and can this be run on any cloud provider.

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

vjrantal commented 5 years ago

I am able to reproduce the same issue. Could it be the same root cause as in the issue discussed at https://github.com/kubeflow/fairing/issues/196#issuecomment-481526203?

vjrantal commented 5 years ago

@chaitanyak52 It looks like this kind of change makes the example work https://github.com/vjrantal/fairing/commit/7f58f994d628392d43f01476bd146237cc36c404.

However, I am not sure if the intent is that user would not have to provide the input files like this so not necessarily saying this is the right kind of approach.

jtfogarty commented 4 years ago

/priority p2 /area engprod

jtfogarty commented 4 years ago

/priority p2 /area engprod