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

python 3.12 not working on spaces #2675

Open
JackismyShephard opened this issue Nov 23, 2024 · 1 comment
Open

python 3.12 not working on spaces #2675

JackismyShephard opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@JackismyShephard
Copy link

Describe the bug

First of all, I am not sure this is the correct place to report issues with hugging spaces so apologies in advance.

I have noticed that python 3.12 does not seem to work on huggingface spaces. Upon initialization I get the error:

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

--> ERROR: process "/bin/sh -c pip install --no-cache-dir pip==22.3.1 && \tpip install --no-cache-dir \tdatasets \t\"huggingface-hub>=0.19\" \"hf-transfer>=0.1.4\" \"protobuf<4\" \"click<8.1\" \"pydantic~=1.0\"" did not complete successfully: exit code: 1

This is a well known error when using an old version of pip with python 3.12. It has been reported here, amongst other places.

I have tried upgrading pip manually using both pre-requirements.txt and packages.txt but that makes no difference. It seems that you are using the old version of pip to install pre-installed packages into spaces environments

Reproduction

No response

Logs

No response

System info

N/A
@JackismyShephard JackismyShephard added the bug Something isn't working label Nov 23, 2024
@Wauplin
Copy link
Contributor

Wauplin commented Nov 25, 2024

Hi @JackismyShephard , thanks for reporting. I've been able to reproduce this issue myself (https://huggingface.co/spaces/Wauplin/test-python-3.12). I've let the infra team know internally and will let you know once we know more.

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