You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
-------------
"just now I tried using gitclone, then installed a dandi-cli environment in python 3.9, activated the environment and tried my command again...received same error"
-------------------------
conda create --name dandi-cli python=3.9
...but now when i ran pip install --upgrade dandi===0.59.0 in the environment it worked and i got:
"please provde API key for dandi:"
so key was knowing specific python version to use and to know that 0.59.0 is the best current version of dandi to use
neither of these things was clear in the instructions/documentation
thanks
evan
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.
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.
Activity
yarikoptic commentedon Jan 29, 2024
what do you see when you run
pip install --upgrade dandi===0.59.0?it failed how? please cut/paste your invocation of
conda install -c conda-forge dandiwith output you are gettingvickerse1 commentedon Jan 29, 2024
jwodder commentedon Jan 30, 2024
dandihas required Python 3.8+ ever since v0.55.1.vickerse1 commentedon Jan 30, 2024
jwodder commentedon Jan 30, 2024
Show the command you used to create & install in the Python 3.9 environment.
vickerse1 commentedon Jan 30, 2024
yarikoptic commentedon Jan 30, 2024
that dandiset is embargoed so needs a key to access. Given that previously your
dandicommand was not working at all, I suspect that API key was never provided before, and hencedandiis asking for it now.Please feel free to recommend specific changes to instructions/documentations which you think could have helped you along this route.
yarikoptic commentedon Feb 18, 2026
Closing as obsolete. Python 3.7 is no longer supported —
requires-python = ">=3.10"since PR #1759. Thetyping.pyerror described here cannot occur on supported Python versions.