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

NameError: name 'FunctionCallRequest' is not defined #6430

Closed
2 tasks done
NSalberg opened this issue Jul 5, 2023 · 2 comments
Closed
2 tasks done

NameError: name 'FunctionCallRequest' is not defined #6430

NSalberg opened this issue Jul 5, 2023 · 2 comments

Comments

@NSalberg
Copy link

NSalberg commented Jul 5, 2023

My actions before raising this issue

Steps to Reproduce (for bugs)

  1. install cvat-sdk: pip install cvat-sdk
  2. run code provide by the docs replacing necessary fields

Expected Behaviour

Automatic annotation should begin with model provided

Current Behaviour

When running the code provided by the docs this error appears
Traceback (most recent call last): File "/pathtofile/annotate.py", line 18, in <module> function_call_request = FunctionCallRequest( NameError: name 'FunctionCallRequest' is not defined

Possible Solution

cvat_sdk should have the model FunctionCallRequest
api_client.lambda_api.create_requests() should take FunctionCallRequest as input

Your Environment

  • cvat_sdk==2.4.7
  • Windows
@zhiltsov-max
Copy link
Contributor

Hi, probably, you're reading the development version docs, as the API definitions for lambda were introduced in #6276, which has not been included in any release yet. If you're actually using the development version, you can build SDK for your version manually.

Related: #6351

@NSalberg
Copy link
Author

NSalberg commented Jul 7, 2023

Yep building the sdk worked!

@NSalberg NSalberg closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants