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

Incorrect arguments for call to _process_append_requests_local #47

Closed
fbcotter opened this issue Apr 2, 2021 · 2 comments
Closed

Incorrect arguments for call to _process_append_requests_local #47

fbcotter opened this issue Apr 2, 2021 · 2 comments

Comments

@fbcotter
Copy link

fbcotter commented Apr 2, 2021

Running into this error:

pip-dl/pypi__nucleus/nucleus/__init__.py in _process_append_requests_local(self, dataset_id, payload, local_batch_size, size)
    408         request_payloads = []
    409         payload_items = []
--> 410         for i in range(0, len(items), local_batch_size):
    411             batch = items[i : i + local_batch_size]
    412             batch_payload = preprocess_payload(batch)

ValueError: range() arg 3 must not be zero

when trying to upload dataset items with dataset.append. It looks like it's caused by some bad positional arguments at

responses = self._process_append_requests_local(
.

@srikanth-scale-2
Copy link
Contributor

Hey! Sorry for the delayed response - we're using slack for support :)

The issue here is that your python client is not up to date - try installing the latest master after uninstalling the current version and try again. Let me know if you face the issue :)

@rkaplan
Copy link
Contributor

rkaplan commented Apr 13, 2021

Closing this because upgrading to the latest Nucleus Python Client resolves the issue.

@rkaplan rkaplan closed this as completed Apr 13, 2021
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

3 participants