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

Resolve Deprecated Numpy Attribute Error np.int #1

Closed
eliseoe opened this issue Jan 29, 2024 · 0 comments
Closed

Resolve Deprecated Numpy Attribute Error np.int #1

eliseoe opened this issue Jan 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eliseoe
Copy link
Collaborator

eliseoe commented Jan 29, 2024

Error Message:
AttributeError: module 'numpy' has no attribute 'int'.

Description:
The commit with ID MagriLab/EchoStateNetwork@9915390 has introduced issues related to the deprecation of np.int in NumPy, resulting in the mentioned attribute error. I believe this is because there is no compatibility with newer versions of NumPy. We should either agree on the same numpy version or resolve this for future versions.

Current Environment:
NumPy: 1.25.2 (most recent is 1.26.2)

see all details @ MagriLab/EchoStateNetwork#10

Resolution Steps:

Replace all instances of np.int with int in the file 'anaconda3\envs\myenv\Lib\site-packages\skopt\space\transformers.py'.
Restart the kernel (or exit PyCharm and open it again).
Run the code again.
This fixed the issue for me.

Closing this issue now.

@eliseoe eliseoe self-assigned this Jan 29, 2024
@eliseoe eliseoe added the bug Something isn't working label Jan 29, 2024
@eliseoe eliseoe closed this as completed Jan 29, 2024
@eliseoe eliseoe pinned this issue Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant