Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vickerse1 opened this issue Jan 29, 2024 · 7 comments
Open

Comments

@vickerse1
Copy link

vickerse1 commented Jan 29, 2024

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

@yarikoptic
Copy link
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

@vickerse1
Copy link
Author

vickerse1 commented Jan 29, 2024 via email

@jwodder
Copy link
Member

jwodder commented Jan 30, 2024

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

@vickerse1
Copy link
Author

vickerse1 commented Jan 30, 2024 via email

@jwodder
Copy link
Member

jwodder commented Jan 30, 2024

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

@vickerse1
Copy link
Author

vickerse1 commented Jan 30, 2024 via email

@yarikoptic
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants