You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/01/14 08:26:08 UTC

[GitHub] aviweit opened a new issue #45: ImportError: No module named 'inference'

aviweit opened a new issue #45: ImportError: No module named 'inference'
URL: https://github.com/apache/incubator-openwhisk-runtime-python/issues/45
 
 
   ## Environment details:
   
   * Ubuntu 16.04.5
   * Openwhisk deployed on a kubernetes cluster 1.13.1 (via openwhisk-deploy-on-kube)
   * Browser: FireFox 60.4.0
   * Docker version: 17.09.1-ce
   
   ## Steps to reproduce the issue:
   Following instructions at https://github.com/apache/incubator-openwhisk-runtime-python/blob/master/core/python3AiAction/samples/smart-body-crop/crop.ipynb
   1.  Invoke:
   ```
   docker run -it -p 8888:8888 -e OPENWHISK_AUTH=`cat ~/.wskprops | grep ^AUTH= | awk -F= '{print $2}'` -e OPENWHISK_APIHOST=`cat ~/.wskprops | grep ^APIHOST= | awk -F= '{print $2}'` --rm -v `pwd`:/notebooks/sf  --entrypoint jupyter-notebook adobeapiplatform/openwhisk-python3aiaction:0.11.0  --notebook-dir=/notebooks --ip 0.0.0.0 --no-browser --allow-root
   ```
   2.   Open FireFox and point it to the URL that is output by Jupyter Notebook container.
   3.   New -> Notebook: python3
   4. Copy the following block
   ```
   from matplotlib import pyplot as plt
   import matplotlib.patches as patches
   
   %matplotlib inline
   from inference import SmartBodyCrop
   from PIL import Image
   import numpy as np
   ```
   4. Hit `Run` button
   
   ## Provide the expected results and outputs:
   I would expect the code snippet to execute with out errors so that I can proceed with the next step in the instructions.
   
   ## Provide the actual results and outputs:
   ```
   ImportError                               Traceback (most recent call last)
   <ipython-input-3-04f1958991c8> in <module>()
         3 
         4 get_ipython().run_line_magic('matplotlib', 'inline')
   ----> 5 from inference import SmartBodyCrop
         6 from PIL import Image
         7 import numpy as np
   
   ImportError: No module named 'inference'
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services