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

DeprecationWarning: We are planning to clean up the entities in datumaro/__init__.py until datumaro==1.5.0. #1556

Open
irmo322 opened this issue Jul 5, 2024 · 0 comments
Assignees

Comments

@irmo322
Copy link

irmo322 commented Jul 5, 2024

Hi,

Executing this simple test_dm.py with pytest shows a DeprecationWarning:

import datumaro as dm

def test_dm_bbox():
    bbox = dm.Bbox(1, 2, 3, 4)
$ pytest test_dm.py
============================================================================================================================= test session starts =============================================================================================================================
platform linux -- Python 3.10.9, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/benjamin/Desktop/test_datumaro
plugins: hydra-core-1.3.2
collected 1 item                                                                                                                                                                                                                                                              

test_dm.py .                                                                                                                                                                                                                                                            [100%]

============================================================================================================================== warnings summary ===============================================================================================================================
venv_datumaro/lib/python3.10/site-packages/datumaro/__init__.py:7
  /home/benjamin/Desktop/test_datumaro/venv_datumaro/lib/python3.10/site-packages/datumaro/__init__.py:7: DeprecationWarning: We are planning to clean up the entities in datumaro/__init__.py until datumaro==1.5.0. This will affect the following import pattern: "import datumaro as dm; dm.<entity>". If you are using this pattern in your code, please revisit it after upgrading datumaro>=1.5.0.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

The warning mentions datumaro>=1.5.0.
Datumaro is already at version 1.7.0 and the documentation is not mentioning what pattern should be used instead of import datumaro as dm; dm.<entity>.

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