autogluon: [BUG] Doesn't work alongside "BioTransformers" library
- I have checked that this bug exists on the latest stable version of AutoGluon
- and/or I have checked that this bug exists on the latest mainline of AutoGluon via source installation
Describe the bug Install library “BioTransformers” and “AutoGluon”. It will fail on importing libraries and then during the using of the library. Depending on the import sequence, it will fail to work. When you will try AutoGluon functions. Error thrown is AutoGluon module is not found. Try to comment, restart kernel and one of the uncommented library will start working again.
Expected behavior Both should work irrespective of each other
To Reproduce
- Install “Bio-Transformers”
- Install “AutoGluon”
from biotransformers import BioTransformers
from autogluon.multimodal import MultiModalPredictor
- Try running the sample code from BioTransformers
- Try running the sample code from AutoGluon
- Depending on the sequence of import statement, one of the library will fail to work
- Restart/reset kernel
- Comment one of the import statement and run imports
- Run again, other uncommented library should work again
Installed Versions
Which version of AutoGluon are you are using?
If you are using 0.4.0 and newer, please run the following code snippet:
# Replace this code with the output of the following:
from autogluon.core.utils import show_versions
show_versions()
This code gives this error
/opt/conda/lib/python3.7/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: /opt/conda/lib/python3.7/site-packages/torchvision/image.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
warn(f"Failed to load image Python extension: {e}")
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15
I checked the requirements of biotransformer and this line seems to be the cause: https://github.com/DeepChainBio/bio-transformers/blob/b3c9998266a9c317d049a1a98dcbecf85f6f0075/requirements.txt#L8