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

problem of numpy version #58

Closed
Jingyi2000 opened this issue Jan 18, 2024 · 2 comments
Closed

problem of numpy version #58

Jingyi2000 opened this issue Jan 18, 2024 · 2 comments
Assignees

Comments

@Jingyi2000
Copy link

Hello, when running the Integration of the pero-ocr python module, I encountered a problem with the numpy version, the error showed:

AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

If I want to lower the numpy version, scipy, numba, etc. also need to lower the version for compatibility, but many lower versions cannot be installed on my computer. What suggestions do you have? Thanks in advance!

@ikiss-fit
Copy link
Contributor

ikiss-fit commented Jan 25, 2024

Hi, this issue is fixed in the current develop branch. Next week at the latest, @ibenes plans to create a new release and therefore the changes from the develop branch will go to the master branch.

If you are working with a local copy of the repository, you can of course change the branch to develop and it should work. Just be careful, there are more changes between the master and develop branches and they can affect integration - the biggest change is the creation of a core directory where the Layout class definition is, for example.

If you need any further help with the integration, let us know and we will assist you.

@ibenes
Copy link
Contributor

ibenes commented Feb 21, 2024

Dear @Jingyi2000,
it took an academic interpretation of "next week at latest" ;-) but the new version is finally live. In the process, we have removed several other deprecation warnings, allowing for integration of pero-ocr with newer versions of several packages, notably numba and shapely.

@ibenes ibenes closed this as completed Feb 21, 2024
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

3 participants