# Dependencies and changing sdk of a space

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%3E%5C
**Category:** Spaces\
**Created:** [January 2, 2024, 7:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734 "2024-01-02T19:20:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KwabsHug](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@KwabsHug](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FKwabsHug)%5C
**Post date:** [January 2, 2024, 7:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%2F1 "2024-01-02T19:20:03Z")

</div>

Hello all,

I am using googletrans in a space and it needs httpx 0.13.3 but huggingface overwrites the version at the end of the build.

Is there a way to stop this?  
If not what happens if you change the sdk of a space? eg. changing to a docker space without making a new one.

[Language Learn Idea - a Hugging Face Space by KwabsHug](https://huggingface.co/spaces/KwabsHug/Language-Learn-Idea)

Container Log  
===== Application Startup at 2024-01-02 18:26:05 =====

Traceback (most recent call last):  
File “/home/user/app/app.py”, line 1, in   
from googletrans import Translator  
File “/home/user/.local/lib/python3.10/site-packages/googletrans/ **init**.py”, line 6, in   
from googletrans.client import Translator  
File “/home/user/.local/lib/python3.10/site-packages/googletrans/client.py”, line 27, in   
class Translator:  
File “/home/user/.local/lib/python3.10/site-packages/googletrans/client.py”, line 57, in Translator  
proxies: typing.Dict[str, httpcore.SyncHTTPTransport] = None,  
AttributeError: module ‘httpcore’ has no attribute ‘SyncHTTPTransport’

Build Logs  
Attempting uninstall: httpx  
Found existing installation: httpx 0.13.3  
Uninstalling httpx-0.13.3:  
Successfully uninstalled httpx-0.13.3  
Attempting uninstall: gradio-client  
Found existing installation: gradio\_client 0.8.0  
Uninstalling gradio\_client-0.8.0:  
Successfully uninstalled gradio\_client-0.8.0  
Attempting uninstall: gradio  
Found existing installation: gradio 4.12.0  
Uninstalling gradio-4.12.0:  
Successfully uninstalled gradio-4.12.0  
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.  
googletrans 3.1.0a0 requires httpx==0.13.3, but you have httpx 0.26.0 which is incompatible.  
Successfully installed authlib-1.3.0 cffi-1.16.0 cryptography-41.0.7 gradio-3.47.1 gradio-client-0.6.0 h11-0.14.0 httpcore-1.0.2 httpx-0.26.0 itsdangerous-2.1.2 psutil-5.9.7 pycparser-2.21 spaces-0.19.4

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 2, 2024, 11:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%2F2 "2024-01-02T23:14:39Z")

</div>

hi @KwabsHug ,  
In this case I recommend you using our Docker SDK and use this Gradio Dockerfile as reference

> **[Dockerfile · SpacesExamples/Gradio-Docker-Template at main](https://huggingface.co/spaces/SpacesExamples/Gradio-Docker-Template/blob/main/Dockerfile)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![KwabsHug](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@KwabsHug](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FKwabsHug)%5C
**Post date:** [January 3, 2024, 6:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%2F3 "2024-01-03T06:24:19Z")

</div>

Thanks for the file. I made another space to ensure the docker side is covered.

I still am confused about changing the sdk on an existing space as I would like to keep the git history and url the same.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 3, 2024, 6:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%2F4 "2024-01-03T06:32:09Z")

</div>

you can still use the same Space, for a Docker Space you can change the yaml here

> **[README.md · SpacesExamples/Gradio-Docker-Template at main](https://huggingface.co/spaces/SpacesExamples/Gradio-Docker-Template/blob/main/README.md)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

set to `sdk: docker` and of course, push a Dockerfile to the repo

---

<div class="post-metadata">

**Author:** ![KwabsHug](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@KwabsHug](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FKwabsHug)%5C
**Post date:** [January 3, 2024, 7:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%2F5 "2024-01-03T07:24:54Z")

</div>

Thank You, very much. Problem solved Completely

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [January 3, 2024, 7:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdependencies-and-changing-sdk-of-a-space%2F67734%2F6 "2024-01-03T19:25:05Z")

</div>

Closed on January 3, 2024, 7:25pm UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
