How to pin version of spaces package?
Dependencies of HF spaces can be specified inrequirements.txt.When running the build (e.g.,here), the docker image has a line:RUN --mount=target=requirements.txt,source=requirements.txt 	pip install --no-cache-dir -r requirements.txtthat takes care of that. However, afterwards there is another line:RUN pip install --no-cache-dir         gradio[oauth]==3.9.1         spaces==0.14.0Which essentially implies that all versions specified inrequirements.txtfor the packagesgradio,spacesand their dependencies are useless because they are overwritten here.In this example,gradiois set to3.9.1because of the YAML config inREADME.mdbut there is no way to specify thespacesversion. In practice this means that I have no control over the version ofspacesand its dependencies (e.g.,httpcore) and all my spaces are now failing with:File "/home/user/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 161, in HTTP11Connection
    self, event: h11.Event, timeout: Optional[float] = None
AttributeError: module 'h11' has no attribute 'Event'Which could normally easily be fixed by pinninghttpcore==0.15. I checked past builds andspaceswas also being installed there, however, the critical line wasRUN pip install --no-cache-dir         gradio[oauth]==3.9.1         spaces==0.12.0which resulted in versions that were not conflicting.Question: How do I properly pin the version of thespacespackage?
2023-10-02T21:58:12Z
Can’t believe that I’m the only person for whom this is causing trouble!It seems that currentlyalldeployed gradio webapps will usespaces==0.14.0(now evenspaces==0.15.0that just became available). Thisspacesversion relies e.g., onhttpcore>=0.18.0, so effectively it seems to impose strong restrictions on which packages can be used
2023-10-05T07:13:27Z
Just for future readers, I was able to resolve this issue by changingsdk_versionofgradioinREADME.txtfrom3.1.0to3.46.0. Then I just had to addh11==0.13.0and now all my apps are back up
2023-10-05T17:14:46Z
thanks for the update, indeed using the latest Gradio will be the best recommendation.