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

Cannot import name '_asarray_validated' from 'scipy.linalg.decomp' #77

Closed
michele-franzan opened this issue Apr 12, 2022 · 2 comments
Closed

Comments

@michele-franzan
Copy link

Including harold package leads to the following error when running a script:

  File "C:\Users\michele.franzan\AppData\Local\Programs\Python\Python310\lib\site-packages\harold\__init__.py", line 30, in <module>
    from ._classes import *
  File "C:\Users\michele.franzan\AppData\Local\Programs\Python\Python310\lib\site-packages\harold\_classes.py", line 6, in <module>
    from scipy.linalg.decomp import _asarray_validated
ImportError: cannot import name '_asarray_validated' from 'scipy.linalg.decomp' (C:\Users\michele.franzan\AppData\Local\Programs\Python\Python310\lib\site-packages\scipy\linalg\decomp.py)

I've found out that the _asarray_validated() function is included in scipy._lib._util instead of scipy.linalg.decomp.

@ilayn
Copy link
Owner

ilayn commented Apr 12, 2022

Thank you @michele-franzan for reporting. I've fixed it in the master branch but didn't make a release yet. If you don't mind, you can clone the directory and use the master branch for this. Sorry for the inconvenience. I'm trying to find some time to make a proper release.

@ilayn
Copy link
Owner

ilayn commented Apr 12, 2022

Duplicate of #74

@ilayn ilayn marked this as a duplicate of #74 Apr 12, 2022
@ilayn ilayn closed this as completed Apr 12, 2022
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