-
-
Notifications
You must be signed in to change notification settings - Fork 621
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
Import Errors #725
Comments
I also have an issue with numpy as a result import issue. ImportError: cannot import name '_broadcast_shape' from 'numpy.lib.stride_tricks' is there any way to fix it? thanks! |
@psychedde1ic have you managed to get the issue solved? |
In case any other poor souls come across this issue, I did some digging and the issue stems from changes in Numpy 1.26. It seems this commit removed So the solution for users would be to use Numpy version 1.25.2 or older. The developers of VectorBT would need to add this new import (if they really want to rely on undocumented parts not in Numpy's public API) if they want to continue supporting newer Numpy versions. Personally I'd recommend refactoring the code to only rely on the public parts of the API to avoid similar problems in the future, as a better long-term solution. |
I also came across this issue. As @Diapolo10 said, the |
Thanks. Fixed in 0.26.2 |
I'm having an import issue for past few days and still not able to solve it.
It's to do with importing _broadcast_shape from numpy.
Below is the error I get
The text was updated successfully, but these errors were encountered: