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

Error Encountered in Python Sample: "None" and Other Types Not Iterable #2702

Open
JuenTingShie opened this issue Dec 17, 2024 · 5 comments
Open
Labels
batch Issues related to batch transcription/synthesis

Comments

@JuenTingShie
Copy link

Description:

I encountered several errors while following the latest Python sample from the README.md. The specific error messages are as follows:

"None" is not iterable
  "__iter__" method not defined Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
"_Date" is not iterable
  "__iter__" method not defined Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
"datetime" is not iterable
  "__iter__" method not defined Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
"AsyncResult" is not iterable
  "__iter__" method not defined Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)

The error occurs in the following method:

def transcriptions_submit_with_http_info(
    api_version: Unknown,
    transcription: Unknown,
    **kwargs: Unknown
) -> (str | list[Unknown] | dict[Unknown, Unknown] | Unknown | _Date | datetime | tuple[str | list[Unknown] | dict[Unknown, Unknown] | Unknown | _Date | datetime | None, Unknown, Unknown] | AsyncResult | None)

Steps to Reproduce:

Follow the instructions in the README.md.

created_transcription, status, headers = api.transcriptions_submit_with_http_info(body=transcription_definition, api_version=API_VERSION)

Additional Information:

Please let me know if there are any updates or fixes for this issue. Thank you!

Copy link

github-actions bot commented Jan 6, 2025

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label Jan 6, 2025
@JuenTingShie
Copy link
Author

Any help?

@github-actions github-actions bot removed the update needed For items that are in progress but have not been updated label Jan 7, 2025
@chlandsi
Copy link
Contributor

chlandsi commented Jan 8, 2025

Which Python version are you using? Please make sure you are using Python 3.12 or later.

@chlandsi chlandsi added the batch Issues related to batch transcription/synthesis label Jan 8, 2025
@JuenTingShie
Copy link
Author

Which Python version are you using? Please make sure you are using Python 3.12 or later.

I'm using Python 3.11.2, while require version of python on README.md is "Python 3.7", but I will upgrade then give it a try.

@JuenTingShie
Copy link
Author

further information: there is no Python 3.12 for Azure Function App
圖片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
batch Issues related to batch transcription/synthesis
Projects
None yet
Development

No branches or pull requests

2 participants