Skip to content

Publish 1.0.0b2 version to PyPI #93

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

Closed
shurph opened this issue Jan 22, 2025 · 8 comments
Closed

Publish 1.0.0b2 version to PyPI #93

shurph opened this issue Jan 22, 2025 · 8 comments

Comments

@shurph
Copy link

shurph commented Jan 22, 2025

Could you please publish 1.0.0b2 version to PyPI?

Current version in PyPI (1.0.0b1) is affected by the issues described in those issues:

New release might help to avoid workarounds and fix the situation in general.

@hallvictoria
Copy link
Contributor

Hi @shurph, could you please elaborate on the issue you're facing?

I'm assuming you're referring to the azurefunctions-extensions-http-fastapi package. Is the issue coming from the pydantic version brought with this package?

@ks6088ts
Copy link
Member

ks6088ts commented Feb 3, 2025

I think that the issue comes from the implementation here: dependencies
azurefunctions-extensions-http-fastapi requires the exact versions for fastapi/pydantic/...
It would be better to use ">=" operator rather than "==".

@beachside-project
Copy link

Hi team,

I'm commenting here because this issue is about pydantic.

I want to use this extension with autoGen v0.4.7😊.

But the current released version of this extension, 1.0.0b1, is not usable due to the low version of pydantic.
Is it possible to expedite the release of a version that supports pydantic v2.10.0 or higher?

Thank you.

Image

@hallvictoria
Copy link
Contributor

Ack on this -- will be releasing a new version of azurefunctions-extensions-http-fastapi soon. Targeting by the end of this week or early next week. This new version will update the dependencies to install compatible versions instead of specific ones.

@kilesk
Copy link

kilesk commented Mar 19, 2025

Please could you provide an update when a new version will be released?

Also with reference to Please describe how to implement HTTP stream support in conjunction with an ASGI compatible framework like FastAPI

Although you make use of FastAPI to realise HTTP stream support in Python Azure functions, you do not provide an example integrating this in conjunction with an ASGI framework, more specifically FastAPI itself. With reference to your documentation for Using FastAPI Framework with Azure Functions.

Your example makes use of azure.functions.func.FunctionApp, it would be great to see an example making use of azure.functions.AsgiFunctionApp.

@kilesk
Copy link

kilesk commented Mar 26, 2025

I've also tried integrating the source code for azurefunctions-extensions-http-fastapi directly into my own, in order to get around the dependency issue. However when debugging locally with azure function core tools v4.0.6821 indexing of the function app always fails with:

[2025-03-26T14:04:06.131Z] Received WorkerInitRequest, python version 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)], worker version 4.31.0, request ID 11f08a1f-b152-4055-91f3-653c6d504c1a. App Settings state: PYTHON_THREADPOOL_THREAD_COUNT: 1000 | PYTHON_ENABLE_INIT_INDEXING: 1 | PYTHON_ENABLE_WORKER_EXTENSIONS: False. To enable debug level logging, please refer to https://aka.ms/python-enable-debug-logging
[2025-03-26T14:04:09.090Z] Indexed function app and found 1 functions
[2025-03-26T14:04:09.172Z] Received WorkerMetadataRequest, request ID 11f08a1f-b152-4055-91f3-653c6d504c1a, function_path: *** OMITTED ***\function_app.py
[2025-03-26T14:04:09.180Z] Worker failed to index functions
[2025-03-26T14:04:09.182Z] Result: Failure Exception: FunctionLoadError: cannot load the stream_sensor_data function: 'req' binding type "httpTrigger" and dataType "None" in function.json do not match the corresponding function parameter's Python type annotation "Request"

This is based on the your FastAPI streaming download example given in your samples directory.

I noticed that this fault was raised on the same exception, although the consensus was this was down to a copycat package which shouldn't have been referenced. That said, the copycat package could have been an attempt to get around the dependency issue - which I've tried to do and inadvertently observed the same exception.

Any feedback on how to get around this issue, or a timeframe for a new release would be of great assistance!

@hallvictoria
Copy link
Contributor

So sorry for the delay! We're planning on releasing a new version of the extension tomorrow. I'll update here once it's complete.

@hallvictoria
Copy link
Contributor

b2 has been released! Closing this issue now, but please feel free to reopen if anyone is still facing issues.

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

5 participants