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

Attribute error #420

Open
pemachan opened this issue Apr 5, 2023 · 1 comment
Open

Attribute error #420

pemachan opened this issue Apr 5, 2023 · 1 comment

Comments

@pemachan
Copy link

pemachan commented Apr 5, 2023

I am trying to run the example "ieee_8500_opendss_to_cyme.py" on Jupyter notebook. When I run "from ditto.readers.opendss.read import Reader" I get an error "AttributeError: module 'numpy.typing' has no attribute 'NDArray'"

@PMeira
Copy link

PMeira commented Apr 5, 2023

Hi,
This is probably due to an issue in DSS-Python.
If you can upgrade NumPy, it should work fine (numpy.typing.NDArray was introduced in NumPy 1.21), e.g.

pip install "numpy>=1.21"

or

conda install "numpy>=1.21"

The dependency constraint will be fixed in the next release there.

EDIT: the packages have been updated, future installations should work fine

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