# Format error: extra keys not allowed @ data\[u'outs'\]\[0\]\[u'size'\]

**URL:** <https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966>\
**Category:** Questions\
**Created:** [November 12, 2021, 8:37am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966 "2021-11-12T08:37:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoop](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@anoop](https://discuss.dvc.org/u/anoop)\
**Post date:** [November 12, 2021, 8:37am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/1 "2021-11-12T08:37:13Z")

</div>

I’m trying to integrate dvc with my project for easy pull/push of AI/ML models, while the dvc works fine on my Windows, When I placed the code on an ubuntu machine and after setting up the cloud credentials and adding the remote storage. I tried `dvc status` command it started giving the following error. I’m not able to interact with dvc at all.

**format error: extra keys not allowed @ data[u’outs’][0][u’size’]**

Does anybody knows the solution for the same?

---

<div class="post-metadata">

**Author:** ![skshetry](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@skshetry](https://discuss.dvc.org/u/skshetry)\
**Post date:** [November 12, 2021, 2:46pm UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/2 "2021-11-12T14:46:19Z")

</div>

Looks like the issue is using `Python 2.7` which we don’t support. We had a similar discussion in Discord (perhaps from the OP themself):

> **[Discord - A New Way to Chat with Friends & Communities](https://discord.com/channels/485586884165107732/563406153334128681/908633337961271326)**
>
> Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

---

<div class="post-metadata">

**Author:** ![rmbzmb](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@rmbzmb](https://discuss.dvc.org/u/rmbzmb)\
**Post date:** [August 5, 2022, 10:57am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/3 "2022-08-05T10:57:10Z")

</div>

I got that with

dvc remote modify storage --local .dvc/tmp/lrg-omics-f94be8f80556.json  
ERROR: configuration error - config file error: extra keys not allowed @ data[‘remote’][‘storage’][‘.dvc/tmp/lrg-omics-f94be8f80556.json’]  
(pqc) ubuntu@dev:~/workspace/ProteomicsQC/lib/lrg-omics\>python --version  
Python 3.10.2

---

<div class="post-metadata">

**Author:** ![Paffciu](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Paffciu](https://discuss.dvc.org/u/Paffciu)\
**Post date:** [August 5, 2022, 12:39pm UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/4 "2022-08-05T12:39:06Z")

</div>

@rmbzmb what exactly are you trying to achieve with this command? What is your `dvc version`?

---

<div class="post-metadata">

**Author:** ![timotta](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@timotta](https://discuss.dvc.org/u/timotta)\
**Post date:** [February 24, 2023, 6:45pm UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/5 "2023-02-24T18:45:29Z")

</div>

I had the same problem. My files were versioned with DVC version 2.36.0. When upgraded to DVC 2.45.1 the problem started.

To fix, i downgrade back to 2.36.0 but I notice that if I edit the .dvc’s files to remove the key “size”, the problem gets fixed too… Never tried to do with all .dvcs to see if it causes any problem, but i think i will have to do it at some point to be able to upgrade dvc

---

<div class="post-metadata">

**Author:** ![tleerai](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@tleerai](https://discuss.dvc.org/u/tleerai)\
**Post date:** [June 29, 2023, 4:37am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/6 "2023-06-29T04:37:16Z")

</div>

I ran into this, but I had to delete this line: hash: md5

---

<div class="post-metadata">

**Author:** ![pmrowla](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pmrowla](https://discuss.dvc.org/u/pmrowla)\
**Post date:** [June 29, 2023, 4:45am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/7 "2023-06-29T04:45:06Z")

</div>

@tleerai this means you are using DVC 2.x when someone else has been using DVC 3.0 or later in that DVC repo. DVC 3.0 is not backwards compatible with older releases, so in a project with multiple collaborators you will all need to update to 3.0 (or you all need to stay on DVC 2.x)

---

<div class="post-metadata">

**Author:** ![pcarr](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pcarr](https://discuss.dvc.org/u/pcarr)\
**Post date:** [October 12, 2023, 8:31am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/8 "2023-10-12T08:31:01Z")

</div>

I’m also getting this error.

I’m working on a macBook which is running dvc v3.25  
I’m also using a Docker container with a Linux distribution and it’s running dvc v2.9.2. I installed dvc with mamba.

I don’t know how to revert back to an older version of DVC on my macBook. how do I do this?  
I also don’t know how to update to the newest version of DVC in the linux container. how do I do this?

I used brew to install dvc on the mac.

I used mamba to install dvc in the linux container.  
I tried to install the latest, with this command,  
mamba install -c conda-forge dvc  
but I’m stuck at v2.9.3

---

<div class="post-metadata">

**Author:** ![pmrowla](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pmrowla](https://discuss.dvc.org/u/pmrowla)\
**Post date:** [October 12, 2023, 9:49am UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/9 "2023-10-12T09:49:34Z")

</div>

On macos, you can install an older DVC release by using the pip installation method (and specifying `pip install dvc==some.version.number`). Homebrew/brew will always try to install the latest version of any package, so there is not a convenient way to downgrade DVC installed with homebrew. (So to downgrade your mac installation, you would need to do `brew uninstall dvc` and then `pip install dvc==...` the specific version you want)

On Linux, if you are unable to upgrade past 2.9.3 it means you are likely using an old Python version that is not supported in later DVC releases. DVC currently only supports Python 3.8 and above. You will need to ensure that your container is running Python 3.8 or later in order to install the latest DVC release.

---

<div class="post-metadata">

**Author:** ![pcarr](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pcarr](https://discuss.dvc.org/u/pcarr)\
**Post date:** [October 20, 2023, 10:38pm UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/10 "2023-10-20T22:38:08Z")

</div>

I’m running Python 3.8.12

The mamba command does not allow me to get to a higher version number.  
What do I do about the existing dvc files that are not compatible with dvc v2? Is there some kind of workaround?

Thanks!

---

<div class="post-metadata">

**Author:** ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)\
**Post date:** [October 23, 2023, 1:39pm UTC](https://discuss.dvc.org/t/format-error-extra-keys-not-allowed-data-uouts-0-usize/966/11 "2023-10-23T13:39:48Z")

</div>

Make sure you are not mixing up python versions in different environments. Newer dvc is compatible with 3.8, so there is something else that’s not quite right in your environment.

> What do I do about the existing dvc files that are not compatible with dvc v2? Is there some kind of workaround?

Are you also getting that `size` error? It means you are using an older dvc version than the one that was used to create that file. The only way forward is to upgrade.
