Skip to content

Re-Creating Space with evaluate-cli not working #213

@meg-huggingface

Description

@meg-huggingface

Presumably this error is happening because a Space was already created -- should evaluate-cli handle that situation?
Since I don't remember exactly where evaluate creates these, the error would be more helpful to me if it gave the url of the Space it's trying to create
As-is, the given url shown in the evaluate-cli error (which is thrown from requests/models.py) provides a different url, https://huggingface.co/api/repos/create. Going to that url, all I see it "{"error":"Sorry, we can't find the page you are looking for."}". Dead-end!

Here's the evaluate-cli error:

(.env) bash-3.2$ evaluate-cli create "npmi" --module_type "measurement"
Traceback (most recent call last):
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/bin/evaluate-cli", line 33, in
sys.exit(load_entry_point('evaluate', 'console_scripts', 'evaluate-cli')())
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/evaluate/src/evaluate/commands/evaluate_cli.py", line 86, in main
create_repo(namespace + "/" + module_slug, repo_type="space", space_sdk="gradio", private=args["private"])
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/lib/python3.9/site-packages/huggingface_hub/utils/_deprecation.py", line 32, in inner_f
return f(*args, **kwargs)
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 1468, in create_repo
raise err
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 1457, in create_repo
_raise_with_request_id(r)
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py", line 95, in _raise_with_request_id
raise e
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py", line 90, in _raise_with_request_id
request.raise_for_status()
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/.env/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: https://huggingface.co/api/repos/create (Request ID: kpt54CtAgUuxffHYa1zE3) - You already created this space repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions