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

numpy warnings suppression is not supported #376

Open
puddleoasis opened this issue May 29, 2024 · 3 comments
Open

numpy warnings suppression is not supported #376

puddleoasis opened this issue May 29, 2024 · 3 comments

Comments

@puddleoasis
Copy link

Describe the bug

The project uses numpy = "1.24.4". As of numpy=1.24.0, numpy.warnings has been removed. When running from the docker-config.yaml, the image kept crashing until I commented out numpy.warnings.filterwarnings('ignore') in deduplicator.py.

To Reproduce
Steps to reproduce the behavior:
docker-compose up. The py_image_dedup crashes for me.
My logs:

2024-05-28 20:16:56 Starting daemon...
2024-05-28 20:16:56 DEBUG:py_image_dedup.util:Starting daemon...
2024-05-28 20:16:58 Traceback (most recent call last):
2024-05-28 20:16:58   File "/usr/local/bin/py-image-dedup", line 6, in <module>
2024-05-28 20:16:58     sys.exit(cli())
2024-05-28 20:16:58   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
2024-05-28 20:16:58     return self.main(*args, **kwargs)
2024-05-28 20:16:58   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
2024-05-28 20:16:58     rv = self.invoke(ctx)
2024-05-28 20:16:58   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
2024-05-28 20:16:58     return _process_result(sub_ctx.command.invoke(sub_ctx))
2024-05-28 20:16:58   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
2024-05-28 20:16:58     return ctx.invoke(self.callback, **ctx.params)
2024-05-28 20:16:58   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
2024-05-28 20:16:58     return __callback(*args, **kwargs)
2024-05-28 20:16:58   File "/app/py_image_dedup/cli.py", line 83, in c_daemon
2024-05-28 20:16:58     deduplicator.deduplicate_all()
2024-05-28 20:16:58   File "/app/py_image_dedup/library/deduplicator.py", line 83, in deduplicate_all
2024-05-28 20:16:58     numpy.warnings.filterwarnings('ignore')
2024-05-28 20:16:58   File "/usr/local/lib/python3.10/site-packages/numpy/__init__.py", line 320, in __getattr__
2024-05-28 20:16:58     raise AttributeError("module {!r} has no attribute "
2024-05-28 20:16:58 AttributeError: module 'numpy' has no attribute 'warnings'. Did you mean: 'hanning'?`

Expected behavior
The container to run.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OSX, running the Docker Img

Additional context
Add any other context about the problem here.

@markusressel
Copy link
Owner

Hi @puddleoasis , thx for the report.
Should be fixed in 9567b10 , please try again with the latest docker image.

@dassio
Copy link

dassio commented Jan 6, 2025

this still happens using the docker-compose.yaml file in the repository

@markusressel
Copy link
Owner

Make sure you are using the latest version. This issue has been fixed a long time ago and there is little reason it should come back.

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