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

TypeError: <class 'numpy.typing._dtype_like._SupportsDType'> is not a generic class #215

Closed
IbrahimK11 opened this issue Jul 26, 2022 · 3 comments

Comments

@IbrahimK11
Copy link

I have been working with the library for some time now but today I am facing the error above. I am not sure what is causing this, I work on Jupyter Notebook(Anaconda3).
Error

@jajcayn
Copy link
Collaborator

jajcayn commented Jul 26, 2022

Dear @IbrahimK11,

thanks for opening an issue. However, I am afraid this is a bug in xarray, not in neurolib. As a test, try to open a new notebook with the same python version and virtual environment and just try to import xarray, nothing else with:

import xarray as xr

My intuition is, that you'll have the same error and then you'll need to raise this issue with xarray folks.

@jajcayn
Copy link
Collaborator

jajcayn commented Jul 26, 2022

Someone else had this issue and reported it in xarray repository here> pydata/xarray#6818

I suggest:

  1. monitor that issue (link above) for possible fixes
  2. for a quick fix, downgrade your version of numpy or xarray manually for now, until the error is resolved on their side

@IbrahimK11
Copy link
Author

I tried with a lower version of numpy and it worked.

Thank you!

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

2 participants