Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-ciqpet32hcd16v3tbm3g.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2023-07-18 03:33:10 {"datetime": "2023-07-17 19:33:10,482", "level": "error", "message": "Caught unhandled exception while initializing", "with": {"err": "No module named 'skimage'", "traceback": "Traceback (most recent call last):\n File "/opt/nuclio/_nuclio_wrapper.py", line 400, in run_wrapper\n wrapper_instance = Wrapper(root_logger,\n ^^^^^^^^^^^^^^^^^^^^\n File "/opt/nuclio/_nuclio_wrapper.py", line 71, in init\n self._entrypoint = self._load_entrypoint_from_handler(handler)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/nuclio/_nuclio_wrapper.py", line 195, in _load_entrypoint_from_handler\n module = import(module_name)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/nuclio/main.py", line 8, in <module>\n from skimage.measure import approximate_polygon, find_contours\nModuleNotFoundError: No module named 'skimage'\n", "worker_id": "0"}} 2023-07-18 03:33:10 23.07.17 19:33:10.896 sor.http.w0.python.logger (E) Unexpected termination of child process {"error": null, "status": "exit status 1"}
时间: 2023-08-05 09:10:51 浏览: 387
Python库 | hkube_python_wrapper-0.1.8-py3-none-any.whl
根据您提供的信息,看起来在运行过程中出现了一个错误。错误信息显示找不到名为'skimage'的模块。这可能是因为缺少了该模块或者模块未正确安装。
为了解决这个问题,您可以尝试安装'skimage'模块。可以使用以下命令来安装:
```
pip install scikit-image
```
如果您已经安装了该模块,那么可能是因为它没有正确导入。请确保在代码中正确导入'skimage'模块,例如:
```python
from skimage.measure import approximate_polygon, find_contours
```
确保在代码中引入模块后重新运行程序,这样应该就可以解决该错误。
阅读全文