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

list_warehouses() generates unexpected argument error #445

Closed
krose9 opened this issue Feb 5, 2025 · 2 comments
Closed

list_warehouses() generates unexpected argument error #445

krose9 opened this issue Feb 5, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@krose9
Copy link

krose9 commented Feb 5, 2025

Describe the bug
Running list_warehouses() with no arguements returns TypeError: _base_api() got an unexpected keyword argument 'reqeust'.
The word "reqeust" is misspelled.

To Reproduce
Steps to reproduce the behavior:

  1. Create a notebook with the input python below.
  2. Notebook is not attached to a lakehouse.
  3. Run code
  4. Exception message suggests a misspelling of keyword arguement.

Input

import sempy_labs
display(sempy_labs.list_warehouses())

Output

TypeError Traceback (most recent call last)
Cell In[7], line 3
1 import sempy_labs
----> 3 display(sempy_labs.list_warehouses())

File /nfs4/pyenv-4ed6306f-e1b4-44ed-ba04-12ab8260aa0f/lib/python3.11/site-packages/sempy_labs/_warehouses.py:95, in list_warehouses(workspace)
91 df = _create_dataframe(columns=columns)
93 (workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace)
---> 95 responses = _base_api(
96 reqeust=f"/v1/workspaces/{workspace_id}/warehouses", uses_pagination=True
97 )
99 for r in responses:
100 for v in r.get("value", []):

TypeError: _base_api() got an unexpected keyword argument 'reqeust'

Expected behavior
Return a list of warehouses in the workspace of the notebook.

@krose9 krose9 added the bug Something isn't working label Feb 5, 2025
@m-kovalsky
Copy link
Collaborator

Thanks for raising the issue. Made a PR (#443) to fix this.

@m-kovalsky m-kovalsky self-assigned this Feb 6, 2025
@m-kovalsky
Copy link
Collaborator

Fixed in 0.9.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants