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

Cannot import name 'float32_io' from 'albucore' #82

Open
kwokster10 opened this issue Nov 8, 2024 · 1 comment
Open

Cannot import name 'float32_io' from 'albucore' #82

kwokster10 opened this issue Nov 8, 2024 · 1 comment

Comments

@kwokster10
Copy link

Hi,

I'm running into this dependency import issue when trying to import Remover on transparent_background==1.3.3

>>> from transparent_background import Remover Traceback (most recent call last): File "/usr/lib/python3.8/code.py", line 90, in runcode exec(code, self.locals) File "<console>", line 1, in <module> File "/opt/chairisher/env/lib/python3.8/site-packages/transparent_background/__init__.py", line 1, in <module> from transparent_background.Remover import Remover, console File "/opt/chairisher/env/lib/python3.8/site-packages/transparent_background/Remover.py", line 15, in <module> import albumentations as A File "/opt/chairisher/env/lib/python3.8/site-packages/albumentations/__init__.py", line 6, in <module> from .augmentations import * File "/opt/chairisher/env/lib/python3.8/site-packages/albumentations/augmentations/__init__.py", line 1, in <module> from .blur.functional import * File "/opt/chairisher/env/lib/python3.8/site-packages/albumentations/augmentations/blur/__init__.py", line 1, in <module> from .functional import * File "/opt/chairisher/env/lib/python3.8/site-packages/albumentations/augmentations/blur/functional.py", line 9, in <module> from albucore import clipped, float32_io, maybe_process_in_chunks, preserve_channel_dim ImportError: cannot import name 'float32_io' from 'albucore' (/opt/chairisher/env/lib/python3.8/site-packages/albucore/__init__.py)

When I revert back to transparent_background==1.3.2, the issue is resolved. Was this commit meant to address this issue: 70b851d?

@plemeri
Copy link
Owner

plemeri commented Nov 11, 2024

Hi @kwokster10, it seems the problem is happening outside of our package. albumentation was introduced by #56 to support cv2, numpy input directly. Maybe I have to look into it. Thanks for the report!

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

2 participants