Skip to content

Import with latest version of numpy not possible #122

@schote

Description

@schote

Hi,

I installed pypulseq in a new conda environment, numpy 1.24 was automatically installed as a dependency.
When importing pypulseq numpy throws an error because np.float is not supported anymore.
Since numpy version 1.20.0 this is deprecated and it is recommended to use float. Since 1.24.0 an error is issued instead of a warning.

To Reproduce
Install pypulseq in a fresh environment:
pip install pypulseq
Import pypulseq
import pypulseq as pp
Error is raised on the import statement, import is not possible.

Version:
pypulseq version: 1.4.0

Workaround
After installing pypulseq, I reinstalled numpy with version 1.23 to avoid the error on import.
pip install numpy==1.23.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions