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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

change libdeeplake error message #2682

Merged
merged 2 commits into from
Nov 3, 2023

review changes

ff79b33
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

change libdeeplake error message #2682

review changes
ff79b33
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed Nov 3, 2023 in 0s

2925 tests run, 1635 passed, 1289 skipped, 1 failed.

Annotations

Check failure on line 116 in deeplake/api/tests/test_video.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_video.test_video_timestamps[hub_cloud_vstream_path-hub_cloud_dev_token]

av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input: 'subfile,,start,51,end,190612503,,:https://deeplake-tests.s3.amazonaws.com/vstream_test_dataset/large_video/chunks/4ce0d75c2cc84d0f?AWSAccessKeyId=ASIAQ7U5UDJELZCRNRTJ&Signature=sxvfBA2%2ByNhId8uLc7ObD7581lg%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEBIaCXVzLWVhc3QtMSJGMEQCIAbP%2FSefNHxnU0%2Bh7uq1qUlwc9A93595sv1jhFGJstZTAiAh8Qb%2F3gdJ01As5J56LnKVjlmKl3oOlYwXhu8Zuc7zayqxAghLEAIaDDA2Nzk3NjMwNTIyNCIMAHCS5mNKrWnNYF4PKo4CfAL6ebov2kCOOThBv11fj%2BXMaDWMAuLxazY3MtN1KY0ZcOnJFHiu%2FFYwyvfFqCfgm0BNOzn3eQVadjN9JSQQH0qee1m3fhYuBCTs1VxWl4AcOZvY4IBBjbjw7rzcW%2FehPC6jnlwh10gFi5TFJflEBDfVaSEDoB3ZykxCJ4l7e8zIdXlTC9YYRzmHAMarsCnNN5rkupECF%2BU5aIWsTPg3cFiq6GtVSPVXqtHqeQ61PXQS1LPA3UdTvQ0OmVHqPrzqImA1yjmkFkCzzbsHnUZDF2azqfFZv%2FB%2BtCc3Kb6yOzfcOu9FOY6oFA6v092Q6hm69Bh2LI%2Brob3kCdQiAjLfSbC1DakY4JlPqAwaQk5iMJfZlKoGOp4BuCmUiwCIeSafq%2B6SEnHSIoZZkNTY4GosI9R%2BHpdnaSlq5hRCfIv%2BM0xHiUksqSihdgwUiT9FqeRHR9x3ErNmquE2cnJbMnbI5vxWaDP%2BxCiKLMvLuFig%2FecbTbHFFlzB6kjp68JKpnmXcNazKZD5x%2FtVhNJXl7g1%2BhNi2TmI%2BOjeHz97BQFv1s%2FO0YVgVDVy4NKs4g%2B8RfVHqkDftO4%3D&Expires=1699035815'; last error log: [mov,mp4,m4a,3gp,3g2,mj2] stream 0, offset 0x24c628e: partial file
Raw output
vstream_path = 'hub://testingacc2/vstream_test_dataset'
hub_token = 'eyJhbGciOiJIUzUxMiIsImlhdCI6MTY5OTAzMTUwNCwiZXhwIjoxNzAyNjMxNTA0fQ.eyJpZCI6InRlc3RpbmdhY2MyIn0.Qfdp-8VOSna9GPQEKz0k4hSpl-zNdMNg0sXxlMI1wg1JOjrD9mZFxN63HRL4dHcSvwXFrzJYVqYnOpa01ZL9rw'

    @pytest.mark.skipif(
        os.name == "nt" and sys.version_info < (3, 7), reason="requires python 3.7 or above"
    )
    @pytest.mark.parametrize(
        ("vstream_path", "hub_token"),
        [
            ("gcs_vstream_path", "hub_cloud_dev_token"),
            ("azure_vstream_path", "hub_cloud_dev_token"),
            ("s3_vstream_path", "hub_cloud_dev_token"),
            ("hub_cloud_vstream_path", "hub_cloud_dev_token"),
        ],
        indirect=True,
    )
    @pytest.mark.slow
    def test_video_timestamps(vstream_path, hub_token):
        ds = deeplake.load(vstream_path, read_only=True, token=hub_token)
    
        with pytest.raises(ValueError):
            ds.mp4_videos[:2].timestamps
    
>       stamps = ds.large_video[0, 12000:1199:-100].timestamps

deeplake/api/tests/test_video.py:116: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
deeplake/core/tensor.py:1394: in timestamps
    stamps = _read_timestamps(sample, start, stop, step, reverse)
deeplake/core/compression.py:1018: in _read_timestamps
    for packet in container.demux(video=0):
av/container/input.pyx:162: in av.container.input.InputContainer.demux
    ???
av/container/core.pyx:292: in av.container.core.Container.err_check
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input: 'subfile,,start,51,end,190612503,,:https://deeplake-tests.s3.amazonaws.com/vstream_test_dataset/large_video/chunks/4ce0d75c2cc84d0f?AWSAccessKeyId=ASIAQ7U5UDJELZCRNRTJ&Signature=sxvfBA2%2ByNhId8uLc7ObD7581lg%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEBIaCXVzLWVhc3QtMSJGMEQCIAbP%2FSefNHxnU0%2Bh7uq1qUlwc9A93595sv1jhFGJstZTAiAh8Qb%2F3gdJ01As5J56LnKVjlmKl3oOlYwXhu8Zuc7zayqxAghLEAIaDDA2Nzk3NjMwNTIyNCIMAHCS5mNKrWnNYF4PKo4CfAL6ebov2kCOOThBv11fj%2BXMaDWMAuLxazY3MtN1KY0ZcOnJFHiu%2FFYwyvfFqCfgm0BNOzn3eQVadjN9JSQQH0qee1m3fhYuBCTs1VxWl4AcOZvY4IBBjbjw7rzcW%2FehPC6jnlwh10gFi5TFJflEBDfVaSEDoB3ZykxCJ4l7e8zIdXlTC9YYRzmHAMarsCnNN5rkupECF%2BU5aIWsTPg3cFiq6GtVSPVXqtHqeQ61PXQS1LPA3UdTvQ0OmVHqPrzqImA1yjmkFkCzzbsHnUZDF2azqfFZv%2FB%2BtCc3Kb6yOzfcOu9FOY6oFA6v092Q6hm69Bh2LI%2Brob3kCdQiAjLfSbC1DakY4JlPqAwaQk5iMJfZlKoGOp4BuCmUiwCIeSafq%2B6SEnHSIoZZkNTY4GosI9R%2BHpdnaSlq5hRCfIv%2BM0xHiUksqSihdgwUiT9FqeRHR9x3ErNmquE2cnJbMnbI5vxWaDP%2BxCiKLMvLuFig%2FecbTbHFFlzB6kjp68JKpnmXcNazKZD5x%2FtVhNJXl7g1%2BhNi2TmI%2BOjeHz97BQFv1s%2FO0YVgVDVy4NKs4g%2B8RfVHqkDftO4%3D&Expires=1699035815'; last error log: [mov,mp4,m4a,3gp,3g2,mj2] stream 0, offset 0x24c628e: partial file

av/error.pyx:336: InvalidDataError