Skip to content

Resolve Deprecated Numpy Attribute Error np.int #1

Description

@eliseoe

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions