dandi/dandi-cli

Schema mismatch between server and client

Opened this issue · 1 comments

Description

Hi team, the following steps recreate an issue I have run into today and in the past:

  1. I haven't uploaded to DANDI in a while, so upgraded the DANDI Client (pip install dandi --upgrade) to 0.62.4.
  2. Ran dandi -l debug upload -i dandi-staging, which returned the following error:
    Error: Server requires schema version 0.6.8; client only supports 0.6.6.  You may need to upgrade dandi and/or dandischema.
    
  3. The installed dandischema version was 0.10.0. When I upgraded dandischema to 0.10.2, I no longer received the schema mismatch error.

Possible solution

  1. Could we start to pin the dandischema version more strictly in the DANDI Client's requirements so that this mismatch is avoided? Currently it is set to a range (i.e. dandischema >= 0.9.0, < 0.11) and so it does not necessarily get upgraded when dandi is upgraded.

Thank you.