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

Initialization Error: Missing signature Attribute #179

Open
Gerbylev opened this issue Mar 7, 2025 · 0 comments
Open

Initialization Error: Missing signature Attribute #179

Gerbylev opened this issue Mar 7, 2025 · 0 comments

Comments

@Gerbylev
Copy link

Gerbylev commented Mar 7, 2025

Description

When trying to initialize the VastAI object, the following error is raised:
AttributeError: 'function' object has no attribute 'signature'. Did you mean: 'mysignature'?

Steps to Reproduce

  1. Create a file with the following content:
from vastai import VastAI

API_KEY = vast_api_key
vast_sdk = VastAI(api_key=API_KEY)
  1. Run the script

During the initialization VastAI, the following error

  File "/home/gerbylev/workspace/gpu_hunter/main.py", line 7, in <module>
    vast_sdk = VastAI(api_key=API_KEY)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gerbylev/workspace/gpu_hunter/.venv/lib/python3.12/site-packages/vastai/vastai_sdk.py", line 37, in __init__
    self.import_cli_functions()
  File "/home/gerbylev/workspace/gpu_hunter/.venv/lib/python3.12/site-packages/vastai/vastai_sdk.py", line 106, in import_cli_functions
    wrapped_func = self.create_wrapper(func, func_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gerbylev/workspace/gpu_hunter/.venv/lib/python3.12/site-packages/vastai/vastai_sdk.py", line 179, in create_wrapper
    sig = getattr(func, "signature")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'signature'. Did you mean: 'mysignature'?
@Gerbylev Gerbylev changed the title Initialization Error in VastAI SDK: Missing signature Attribute Initialization Error: Missing signature Attribute Mar 7, 2025
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

1 participant