Skip to content

dandi download doesn't work, typing.py error, Windows 10, Python 3.7.2 #1396

Closed

Description

@vickerse1

I used pip install dandi on windows 10, then received the following error when I typed in "dandi download https://dandiarchive.org/dandiset/XXXXXX/draft" (anaconda prompt, Python 3.72):

-----------------
(base) D:\meso_methods_draft_Feb1623_GDRIVE\eLife_submission_Nov0223\revision_Jan08_2024\DANDISET>dandi download https://dandiarchive.org/dandiset/000879/draft
2024-01-29 15:38:52,785 [ WARNING] A newer version (0.59.0) of dandi/dandi-cli is available. You are using 0.55.0
2024-01-29 15:38:53,150 [    INFO] Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2024-01-29 15:38:54,411 [    INFO] Logs saved in C:\Users\McCormick Lab\AppData\Local\dandi\dandi-cli\Logs\20240129233852Z-116396.log
Error: cannot import name 'Literal' from 'typing' (c:\programdata\anaconda3\lib\typing.py)
------------------------

Then I uninstalled with pip uninstall dandi, and tried conda forge....the installation failed.

Finally, I went back and used the pip install again, and received the same error.

Can you help me?

Thanks,

Evan

Activity

  1. yarikoptic commented on Jan 29, 2024

    @yarikoptic
    Member

    what do you see when you run pip install --upgrade dandi===0.59.0 ?

    , and tried conda forge....the installation failed.

    it failed how? please cut/paste your invocation of conda install -c conda-forge dandi with output you are getting

  2. vickerse1 commented on Jan 29, 2024

    @vickerse1
    Author
  3. jwodder commented on Jan 30, 2024

    @jwodder
    Contributor

    dandi has required Python 3.8+ ever since v0.55.1.

  4. vickerse1 commented on Jan 30, 2024

    @vickerse1
    Author
  5. jwodder commented on Jan 30, 2024

    @jwodder
    Contributor

    Show the command you used to create & install in the Python 3.9 environment.

  6. vickerse1 commented on Jan 30, 2024

    @vickerse1
    Author
  7. yarikoptic commented on Jan 30, 2024

    @yarikoptic
    Member

    that dandiset is embargoed so needs a key to access. Given that previously your dandi command was not working at all, I suspect that API key was never provided before, and hence dandi is asking for it now.

    Please feel free to recommend specific changes to instructions/documentations which you think could have helped you along this route.

  8. yarikoptic commented on Feb 18, 2026

    @yarikoptic
    Member

    Closing as obsolete. Python 3.7 is no longer supported — requires-python = ">=3.10" since PR #1759. The typing.py error described here cannot occur on supported Python versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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