You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a file with the following content:
from vastai import VastAI
API_KEY = vast_api_key
vast_sdk = VastAI(api_key=API_KEY)
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'?
The text was updated successfully, but these errors were encountered:
Gerbylev
changed the title
Initialization Error in VastAI SDK: Missing signature Attribute
Initialization Error: Missing signature Attribute
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
During the initialization VastAI, the following error
The text was updated successfully, but these errors were encountered: