Skip to content
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

[Question] Better understanding nuclio deployment and creating a custom Annotator #9121

Closed
ozangungor12 opened this issue Feb 19, 2025 · 1 comment
Labels
question Further information is requested

Comments

@ozangungor12
Copy link

Hello, I am trying to deploy my own detector to CVAT and I would like to understand how "nuclio" specific is this process.

I am looking at the example with SAM deployment on CVAT here: https://github.com/cvat-ai/cvat/blob/develop/serverless/pytorch/facebookresearch/sam/nuclio/function.yaml#L28-L54

And I realized that it's using a ubuntu base image and there are no nuclio specific installation in the following steps.

However, when I want to try another base image for my deployment, the build fails with nuclio_sdk module not found error.

25.02.19 16:26:20.680 cessor.healthcheck.server (I) Listening {"listenAddress": ":8082"} 25.02.19 16:26:20.680 processor.http (D) Creating worker pool {"num": 1} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-cuqvg751a89c73825qgg.sock"} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-cuqvg751a89c73825qh0.sock"} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Using Python handler {"handler": "main:handler"} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Using Python executable {"path": "/usr/bin/python3"} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio"} 25.02.19 16:26:20.680 sor.http.w0.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cuqvg751a89c73825qgg.sock --control-socket-path /tmp/nuclio-rpc-cuqvg751a89c73825qh0.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} Traceback (most recent call last): File "/opt/nuclio/_nuclio_wrapper.py", line 26, in <module> import nuclio_sdk ModuleNotFoundError: No module named 'nuclio_sdk'

Thanks in advance for any help!

@azhavoro azhavoro added the question Further information is requested label Feb 21, 2025
@azhavoro
Copy link
Contributor

@ozangungor12 Hi,

I think this is defined by runtime https://docs.nuclio.io/en/stable/reference/runtimes/python/python-reference.html, but in any case it is better to ask this question in the nuclio repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants