karolzak / ipyplot

IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.
MIT License
415 stars 41 forks source link

AttributeError: module 'numpy' has no attribute 'float'. #59

Closed hhh-0 closed 10 months ago

hhh-0 commented 1 year ago

With numpy version 1.25.2 installed, ipyplot.plot_images() gives AttributeError: module 'numpy' has no attribute 'float'.

It looks like the fix (https://github.com/karolzak/ipyplot/pull/51 ) is merged but due to build fail, the latest version isn't available in PyPI.

ami-navon commented 11 months ago

+1

oroelipas commented 11 months ago

Ok, I think I found the reason:

51 fixed the error in January 2023 but the last release available (1.1.1) is from March 2022, so it is not included yet in the PyPi repositories.

You can install the latest version from the github source code with this pip command:

pip install --upgrade --force-reinstall git+https://github.com/karolzak/ipyplot

(Remember to restart the python environment and reload libraries again to have the new installed version)

This worked for me.

recursix commented 10 months ago

should someone upgrade the PyPi?

karolzak commented 10 months ago

Thanks everyone for raising this issue. I finally fixed the publish process and released the new package to PyPI with 1.1.2 version so there's no need for hacks and workarounds anymore :) Thank you all for your patience!