question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create_repo does not work unless you set private argument

See original GitHub issue

Describe the bug

create_repo does not work if private is not set. In https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1458 we should likely set a boolean.

Internal discussion https://huggingface.slack.com/archives/C02V5EA0A95/p1654783848296429

Reproduction

I just tried

create_repo("osanseviero/test_copy", token="TOKEN")

Logs

HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/repos/create - "private" must be a boolean

System Info

huggingface-hub-0.7.0, Colab and Space

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
julien-ccommented, Jun 9, 2022

(we’ll keep supporting server-side otherwise old versions of huggingface_hub won’t work anymore)

1reaction
julien-ccommented, Jun 10, 2022

yes what i meant is that we won’t be able to drop the server fix anyways, but ok to update the behavior here

Read more comments on GitHub >

github_iconTop Results From Across the Web

[RFE] Create module YAML file based from a given set of RPM ...
In the end, I would like to be able with "createrepo_c" and "modifyrepo_c" to create a repository where dnf is not yelling "Error:...
Read more >
Tools for maintaining yum repositories - Server Fault
Since a yum repository is just a directory that you run createrepo(8) against and serve over http, functions you mention like uploading, keeping...
Read more >
Create a repo - GitHub Docs
Create a repository. You can store a variety of projects in GitHub repositories, including open source projects. With open source projects, you can...
Read more >
Creating a Redhat package repository - Linux Tutorials
In this tutorial, we show the step by step instructions to create a custom Red Hat package repository via the Linux command line....
Read more >
createrepo - Manages creation of yum repositories
The createrepo module allows you to create and update yum repositories. ... If set to false the cron job will not be created...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found