ImportError: No module named ktc

i recently setup docker and try to run example but got error saying no ktc module:

root@fb3ac2363133:/workspace/examples/LittleNet# ls /workspace/

ai_training/    examples/     libs/

E2E_Simulator/   cmake/       lenet_matlab.onnx miniconda/


root@fb3ac2363133:/workspace/examples/LittleNet

>>> import ktc

Traceback (most recent call last):

 File "<stdin>", line 1, in <module>

ImportError: No module named ktc


do i need to download it seperately (not in the docker itself already)? from where?

Tagged:

Comments

  • The ktc module is a library of python, so you should use ktc module in python only.

    You can import it in your python file like "/workspace/examples/LittleNet/python_api_workflow.py".


    Or enter python environment to import as below.

    (base) root@8b298275e357:/workspace/examples/LittleNet# python

    Python 3.7.10 (default, Feb 26 2021, 18:47:35) 

    [GCC 7.3.0] :: Anaconda, Inc. on linux

    Type "help", "copyright", "credits" or "license" for more information.

    >>> import ktc

    /workspace/miniconda/lib/python3.7/site-packages/numpy/__init__.py:156: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service

     from . import _distributor_init

    Using TensorFlow backend.

    >>> 

The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.