Updated version for next release #12244
22452 tests run, 11475 passed, 10632 skipped, 345 failed.
Annotations
Check failure on line 1 in deeplake/core/vectorstore/deep_memory/test_deepmemory.py
github-actions / JUnit Test Report
test_deepmemory.test_deepmemory_train_and_cancel
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
request = <SubRequest 'corpus_query_relevances_copy' for <Function test_deepmemory_train_and_cancel>>
hub_cloud_dev_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
@pytest.fixture
def corpus_query_relevances_copy(request, hub_cloud_dev_token):
if not is_opt_true(request, HUB_CLOUD_OPT):
pytest.skip(f"{HUB_CLOUD_OPT} flag not set")
return
corpus = _get_storage_path(request, HUB_CLOUD)
query_vs = VectorStore(
path=f"hub://{HUB_CLOUD_DEV_USERNAME}/deepmemory_test_queries",
runtime={"tensor_db": True},
token=hub_cloud_dev_token,
)
queries = query_vs.dataset.text.data()["value"]
relevance = query_vs.dataset.metadata.data()["value"]
relevance = [rel["relevance"] for rel in relevance]
> deeplake.deepcopy(
f"hub://{HUB_CLOUD_DEV_USERNAME}/test-deepmemory10",
corpus,
token=hub_cloud_dev_token,
overwrite=True,
runtime={"tensor_db": True},
)
deeplake/tests/path_fixtures.py:491:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:1434: in deepcopy
ret._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/core/vectorstore/deep_memory/test_deepmemory.py
github-actions / JUnit Test Report
test_deepmemory.test_deepmemory_train_with_embedding_function_specified_in_constructor_should_not_throw_any_exception
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
request = <SubRequest 'deepmemory_small_dataset_copy' for <Function test_deepmemory_train_with_embedding_function_specified_in_constructor_should_not_throw_any_exception>>
hub_cloud_dev_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
@pytest.fixture
def deepmemory_small_dataset_copy(request, hub_cloud_dev_token):
dm_path = f"hub://{HUB_CLOUD_DEV_USERNAME}/tiny_dm_dataset"
queries_path = f"hub://{HUB_CLOUD_DEV_USERNAME}/queries_vs"
local_cache_path = ".deepmemory_tests_cache/"
if not os.path.exists(local_cache_path):
os.mkdir(local_cache_path)
dataset_cache_path = local_cache_path + "tiny_dm_queries"
if not os.path.exists(dataset_cache_path):
deeplake.deepcopy(
queries_path,
dataset_cache_path,
token=hub_cloud_dev_token,
overwrite=True,
)
corpus = _get_storage_path(request, HUB_CLOUD)
query_vs = VectorStore(
path=dataset_cache_path,
)
queries = query_vs.dataset.text.data()["value"]
relevance = query_vs.dataset.metadata.data()["value"]
relevance = [rel["relevance"] for rel in relevance]
> deeplake.deepcopy(
dm_path,
corpus,
token=hub_cloud_dev_token,
overwrite=True,
runtime={"tensor_db": True},
)
deeplake/tests/path_fixtures.py:905:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:1434: in deepcopy
ret._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 774 in deeplake/core/vectorstore/deep_memory/test_deepmemory.py
github-actions / JUnit Test Report
test_deepmemory.test_deepmemory_evaluate_with_embedding_function_specified_in_constructor_should_not_throw_any_exception
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
corpus_query_pair_path = ('hub://testingacc2/deepmemory_test_corpus_managed_2', 'hub://testingacc2/deepmemory_test_corpus_managed_2_eval_queries')
hub_cloud_dev_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
@pytest.mark.slow
@pytest.mark.flaky(reruns=3)
@pytest.mark.skipif(sys.platform == "win32", reason="Does not run on Windows")
def test_deepmemory_evaluate_with_embedding_function_specified_in_constructor_should_not_throw_any_exception(
corpus_query_pair_path,
hub_cloud_dev_token,
):
corpus, queries = corpus_query_pair_path
db = VectorStore(
path=corpus,
runtime={"tensor_db": True},
token=hub_cloud_dev_token,
embedding_function=embedding_fn,
)
> queries_vs = VectorStore(
path=queries,
runtime={"tensor_db": True},
token=hub_cloud_dev_token,
embedding_function=embedding_fn,
)
deeplake/core/vectorstore/deep_memory/test_deepmemory.py:774:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/core/vectorstore/deeplake_vectorstore.py:120: in __init__
self.dataset_handler = get_dataset_handler(
deeplake/core/vectorstore/dataset_handlers/dataset_handler.py:13: in get_dataset_handler
return ClientSideDH(*args, **kwargs)
deeplake/core/vectorstore/dataset_handlers/client_side_dataset_handler.py:66: in __init__
self.dataset = dataset or dataset_utils.create_or_load_dataset(
deeplake/core/vectorstore/vector_search/dataset/dataset.py:60: in create_or_load_dataset
return create_dataset(
deeplake/core/vectorstore/vector_search/dataset/dataset.py:180: in create_dataset
dataset = deeplake.empty(
deeplake/api/dataset.py:510: in empty
ret = dataset._load(dataset_kwargs, create=True)
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 948 in deeplake/enterprise/test_pytorch.py
github-actions / JUnit Test Report
test_pytorch.test_pytorch_data_decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 3: invalid start byte
Raw output
local_auth_ds = Dataset(path='./hub_pytest/test_pytorch/test_pytorch_data_decode', tensors=['generic', 'text', 'json', 'list', 'class_label', 'image'])
cat_path = '/home/runner/work/deeplake/deeplake/deeplake/tests/dummy_data/images/cat.jpeg'
@requires_libdeeplake
@requires_torch
@pytest.mark.flaky
@pytest.mark.slow
def test_pytorch_data_decode(local_auth_ds, cat_path):
with local_auth_ds as ds:
ds.create_tensor("generic")
for i in range(10):
ds.generic.append(i)
ds.create_tensor("text", htype="text")
for i in range(10):
ds.text.append(f"hello {i}")
ds.create_tensor("json", htype="json")
for i in range(10):
ds.json.append({"x": i})
ds.create_tensor("list", htype="list")
for i in range(10):
ds.list.append([i, i + 1])
ds.create_tensor("class_label", htype="class_label")
animals = [
"cat",
"dog",
"bird",
"fish",
"horse",
"cow",
"pig",
"sheep",
"goat",
"chicken",
]
ds.class_label.extend(animals)
ds.create_tensor("image", htype="image", sample_compression="jpeg")
for i in range(10):
ds.image.append(deeplake.read(cat_path))
decode_method = {tensor: "data" for tensor in list(ds.tensors.keys())}
ptds = (
ds.dataloader()
.transform(identity)
.pytorch(decode_method=decode_method, collate_fn=identity_collate)
)
> for i, batch in enumerate(ptds):
deeplake/enterprise/test_pytorch.py:948:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/enterprise/dataloader.py:881: in __next__
return next(self._iterator)
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/indra/pytorch/loader.py:155: in __next__
return next(self._iterator)
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/indra/pytorch/single_process_iterator.py:80: in __next__
return self.get_data()
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/indra/pytorch/single_process_iterator.py:117: in get_data
batch = self._next_data()
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/indra/pytorch/single_process_iterator.py:102: in _next_data
sample[tensor] = bytes_to_text(sample[tensor], "json")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
buffer = b"eX'\x84\x05\x7f\x00\x00", htype = 'json'
def bytes_to_text(buffer, htype):
buffer = bytes(buffer)
if htype == "json":
arr = np.empty(1, dtype=object)
> arr[0] = json.loads(bytes.decode(buffer), cls=HubJsonDecoder)
E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 3: invalid start byte
deeplake/core/serialize.py:481: UnicodeDecodeError
Check failure on line 87 in deeplake/api/tests/test_access_method.py
github-actions / JUnit Test Report
test_access_method.test_access_method_with_creds
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12292f130>
hub_cloud_dev_managed_creds_key = 'aws_creds'
@pytest.mark.slow
def test_access_method_with_creds(
hub_cloud_ds_generator, hub_cloud_dev_managed_creds_key
):
> with hub_cloud_ds_generator() as ds:
deeplake/api/tests/test_access_method.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 75 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_persist[hub_cloud_ds_generator]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x1245ad2d0>
@pytest.mark.slow
@pytest.mark.parametrize(
"ds_generator",
[
"local_ds_generator",
"s3_ds_generator",
"hub_cloud_ds_generator",
],
indirect=True,
)
def test_persist(ds_generator):
> ds = ds_generator()
deeplake/api/tests/test_api.py:75:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_hub_dataset_suffix_bug
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12454e3b0>
@pytest.fixture
def hub_cloud_ds(hub_cloud_ds_generator):
> return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 957 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_dataset_rename[True-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x122b612d0>
path = 'hub://testingacc2/tmp5ec6_test_api_test_dataset_rename-True-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
convert_to_pathlib = True
@pytest.mark.parametrize(
("ds_generator", "path", "hub_token"),
[
("local_ds_generator", "local_path", "hub_cloud_dev_token"),
pytest.param(
"s3_ds_generator", "s3_path", "hub_cloud_dev_token", marks=pytest.mark.slow
),
pytest.param(
"gcs_ds_generator",
"gcs_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"azure_ds_generator",
"azure_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"hub_cloud_ds_generator",
"hub_cloud_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
],
indirect=True,
)
@pytest.mark.parametrize("convert_to_pathlib", [True, False])
def test_dataset_rename(ds_generator, path, hub_token, convert_to_pathlib):
> ds = ds_generator()
deeplake/api/tests/test_api.py:957:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 957 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_dataset_rename[False-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12454dc60>
path = 'hub://testingacc2/tmp5ec6_test_api_test_dataset_rename-False-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
convert_to_pathlib = False
@pytest.mark.parametrize(
("ds_generator", "path", "hub_token"),
[
("local_ds_generator", "local_path", "hub_cloud_dev_token"),
pytest.param(
"s3_ds_generator", "s3_path", "hub_cloud_dev_token", marks=pytest.mark.slow
),
pytest.param(
"gcs_ds_generator",
"gcs_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"azure_ds_generator",
"azure_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"hub_cloud_ds_generator",
"hub_cloud_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
],
indirect=True,
)
@pytest.mark.parametrize("convert_to_pathlib", [True, False])
def test_dataset_rename(ds_generator, path, hub_token, convert_to_pathlib):
> ds = ds_generator()
deeplake/api/tests/test_api.py:957:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1000 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_dataset_deepcopy[True-2-hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
path = 'hub://testingacc2/tmp5ec6_test_api_test_dataset_deepcopy-True-2-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
num_workers = 2, progressbar = True
@pytest.mark.parametrize(
"path,hub_token",
[
["local_path", "hub_cloud_dev_token"],
pytest.param("hub_cloud_path", "hub_cloud_dev_token", marks=pytest.mark.slow),
],
indirect=True,
)
@pytest.mark.parametrize("num_workers", [2])
@pytest.mark.parametrize("progressbar", [True])
def test_dataset_deepcopy(path, hub_token, num_workers, progressbar):
src_path = "_".join((path, "src1"))
dest_path = "_".join((path, "dest1"))
> src_ds = deeplake.empty(src_path, overwrite=True, token=hub_token)
deeplake/api/tests/test_api.py:1000:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:510: in empty
ret = dataset._load(dataset_kwargs, create=True)
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1052 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_deepcopy[hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
path = 'hub://testingacc2/tmp5ec6_test_api_test_deepcopy-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
@pytest.mark.parametrize(
"path,hub_token",
[
["local_path", "hub_cloud_dev_token"],
pytest.param("hub_cloud_path", "hub_cloud_dev_token", marks=pytest.mark.slow),
],
indirect=True,
)
def test_deepcopy(path, hub_token):
src_path = "_".join((path, "src"))
dest_path = "_".join((path, "dest"))
> src_ds = deeplake.empty(src_path, overwrite=True, token=hub_token)
deeplake/api/tests/test_api.py:1052:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:510: in empty
ret = dataset._load(dataset_kwargs, create=True)
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1123 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_deepcopy_errors[hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
path = 'hub://testingacc2/tmp5ec6_test_api_test_deepcopy_errors-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
@pytest.mark.parametrize(
"path,hub_token",
[
["local_path", "hub_cloud_dev_token"],
pytest.param("hub_cloud_path", "hub_cloud_dev_token", marks=pytest.mark.slow),
],
indirect=True,
)
def test_deepcopy_errors(path, hub_token):
src_path = "_".join((path, "src"))
dest_path = "_".join((path, "dest"))
> src_ds = deeplake.empty(src_path, overwrite=True, token=hub_token)
deeplake/api/tests/test_api.py:1123:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:510: in empty
ret = dataset._load(dataset_kwargs, create=True)
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1971 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_hub_exists[True-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x122c71ab0>
path = 'hub://testingacc2/tmp5ec6_test_api_test_hub_exists-True-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
convert_to_pathlib = True
@pytest.mark.parametrize(
("ds_generator", "path", "hub_token"),
[
("local_ds_generator", "local_path", "hub_cloud_dev_token"),
pytest.param(
"s3_ds_generator",
"s3_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"gcs_ds_generator",
"gcs_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"hub_cloud_ds_generator",
"hub_cloud_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
],
indirect=True,
)
@pytest.mark.parametrize("convert_to_pathlib", [True, False])
def test_hub_exists(ds_generator, path, hub_token, convert_to_pathlib):
path = convert_string_to_pathlib_if_needed(path, convert_to_pathlib)
> ds = ds_generator()
deeplake/api/tests/test_api.py:1971:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1971 in deeplake/api/tests/test_api.py
github-actions / JUnit Test Report
test_api.test_hub_exists[False-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token]
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12454e710>
path = 'hub://testingacc2/tmp5ec6_test_api_test_hub_exists-False-hub_cloud_ds_generator-hub_cloud_path-hub_cloud_dev_token-'
hub_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
convert_to_pathlib = False
@pytest.mark.parametrize(
("ds_generator", "path", "hub_token"),
[
("local_ds_generator", "local_path", "hub_cloud_dev_token"),
pytest.param(
"s3_ds_generator",
"s3_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"gcs_ds_generator",
"gcs_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
pytest.param(
"hub_cloud_ds_generator",
"hub_cloud_path",
"hub_cloud_dev_token",
marks=pytest.mark.slow,
),
],
indirect=True,
)
@pytest.mark.parametrize("convert_to_pathlib", [True, False])
def test_hub_exists(ds_generator, path, hub_token, convert_to_pathlib):
path = convert_string_to_pathlib_if_needed(path, convert_to_pathlib)
> ds = ds_generator()
deeplake/api/tests/test_api.py:1971:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_connect_datasets.py
github-actions / JUnit Test Report
test_connect_datasets.test_connect_dataset_cases
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x1386cbe20>
@pytest.fixture
def hub_cloud_ds(hub_cloud_ds_generator):
> return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_events.py
github-actions / JUnit Test Report
test_events.test_commit_checkout_event
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x125743490>
@pytest.fixture
def hub_cloud_ds(hub_cloud_ds_generator):
> return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_events.py
github-actions / JUnit Test Report
test_events.test_query_progress_event
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x1245ace50>
@pytest.fixture
def hub_cloud_ds(hub_cloud_ds_generator):
> return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_events.py
github-actions / JUnit Test Report
test_events.test_compute_progress_event
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x122c1a440>
@pytest.fixture
def hub_cloud_ds(hub_cloud_ds_generator):
> return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_events.py
github-actions / JUnit Test Report
test_events.test_pytorch_progress_event
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12447b6d0>
@pytest.fixture
def hub_cloud_ds(hub_cloud_ds_generator):
> return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 499 in deeplake/api/tests/test_link.py
github-actions / JUnit Test Report
test_link.test_link_managed
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x1247c1090>
cat_path = '/Users/runner/work/deeplake/deeplake/deeplake/tests/dummy_data/images/cat.jpeg'
@pytest.mark.slow
def test_link_managed(hub_cloud_ds_generator, cat_path):
key_name = "CREDS_MANAGEMENT_TEST"
> with hub_cloud_ds_generator() as ds:
deeplake/api/tests/test_link.py:499:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 664 in deeplake/api/tests/test_link.py
github-actions / JUnit Test Report
test_link.test_creds
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12391b910>
cat_path = '/Users/runner/work/deeplake/deeplake/deeplake/tests/dummy_data/images/cat.jpeg'
@pytest.mark.slow
def test_creds(hub_cloud_ds_generator, cat_path):
creds_key = "ENV"
> ds = hub_cloud_ds_generator()
deeplake/api/tests/test_link.py:664:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 706 in deeplake/api/tests/test_link.py
github-actions / JUnit Test Report
test_link.test_update_creds_to_existing
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
hub_cloud_ds_generator = <function hub_cloud_ds_generator.<locals>.generate_hub_cloud_ds at 0x12447b910>
cat_path = '/Users/runner/work/deeplake/deeplake/deeplake/tests/dummy_data/images/cat.jpeg'
@pytest.mark.slow
def test_update_creds_to_existing(hub_cloud_ds_generator, cat_path):
creds_key = "ENV"
> ds = hub_cloud_ds_generator()
deeplake/api/tests/test_link.py:706:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 1 in deeplake/api/tests/test_pickle.py
github-actions / JUnit Test Report
test_pickle.test_dataset[hub_cloud_ds]
failed on setup with "deeplake.util.exceptions.UnprocessableEntityException:"
Raw output
request = <SubRequest 'ds' for <Function test_dataset[hub_cloud_ds]>>
@pytest.fixture
def ds(request):
"""Used with parametrize to use all enabled dataset fixtures."""
> return request.getfixturevalue(request.param)
deeplake/tests/dataset_fixtures.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/tests/dataset_fixtures.py:147: in hub_cloud_ds
return hub_cloud_ds_generator()
deeplake/tests/dataset_fixtures.py:153: in generate_hub_cloud_ds
return deeplake.dataset(hub_cloud_path, token=hub_cloud_dev_token, **kwargs)
deeplake/util/spinner.py:151: in inner
return func(*args, **kwargs)
deeplake/api/dataset.py:319: in init
raise e
deeplake/api/dataset.py:312: in init
return dataset._load(
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 27 in deeplake/api/tests/test_views.py
github-actions / JUnit Test Report
test_views.test_view_token_only
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
hub_cloud_path = 'hub://testingacc2/tmp5ec6_test_views_test_view_token_only'
hub_cloud_dev_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
hub_cloud_dev_credentials = ('testingacc2', None)
@pytest.mark.slow
def test_view_token_only(
hub_cloud_path, hub_cloud_dev_token, hub_cloud_dev_credentials
):
> ds = deeplake.empty(hub_cloud_path, token=hub_cloud_dev_token)
deeplake/api/tests/test_views.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:510: in empty
ret = dataset._load(dataset_kwargs, create=True)
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException
Check failure on line 95 in deeplake/api/tests/test_views.py
github-actions / JUnit Test Report
test_views.test_vds_read_only
deeplake.util.exceptions.UnprocessableEntityException:
Raw output
hub_cloud_path = 'hub://testingacc2/tmp5ec6_test_views_test_vds_read_only'
hub_cloud_dev_token = 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpZCI6InRlc3RpbmdhY2MyIiwiYXBpX2tleSI6IjU4Y0tLb1p6UE1BbThPU2RpbTRiZ2tBekhWekt1VUE3MFJpNTNyZUpKRTJuaiJ9.'
@pytest.mark.slow
def test_vds_read_only(hub_cloud_path, hub_cloud_dev_token):
> ds = deeplake.empty(hub_cloud_path, token=hub_cloud_dev_token)
deeplake/api/tests/test_views.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deeplake/api/dataset.py:510: in empty
ret = dataset._load(dataset_kwargs, create=True)
deeplake/api/dataset.py:778: in _load
ret = dataset_factory(**dataset_kwargs)
deeplake/core/dataset/__init__.py:23: in dataset_factory
ds = clz(path=path, *args, **kwargs)
deeplake/core/dataset/dataset.py:280: in __init__
self._set_derived_attributes(address=address)
deeplake/core/dataset/dataset.py:2478: in _set_derived_attributes
self._populate_meta(
deeplake/core/dataset/dataset.py:1974: in _populate_meta
self._register_dataset()
deeplake/core/dataset/deeplake_cloud_dataset.py:87: in _register_dataset
self.client.create_dataset_entry(
deeplake/client/client.py:246: in create_dataset_entry
response = self.request(
deeplake/client/client.py:148: in request
check_response_status(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response [422]>
def check_response_status(response: requests.Response):
"""Check response status and throw corresponding exception on failure."""
code = response.status_code
if code >= 200 and code < 300:
return
try:
message = response.json()["description"]
except Exception:
message = " "
if code == 400:
raise BadRequestException(message)
elif response.status_code == 401:
raise AuthenticationException
elif response.status_code == 403:
raise AuthorizationException(message, response=response)
elif response.status_code == 404:
if message != " ":
raise ResourceNotFoundException(message)
raise ResourceNotFoundException
elif response.status_code == 422:
> raise UnprocessableEntityException(message)
E deeplake.util.exceptions.UnprocessableEntityException:
deeplake/client/utils.py:66: UnprocessableEntityException