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

[Bug]: Missing attributes when using LocalBulkWriter #2274

Open
1 task done
Stevan1996 opened this issue Sep 25, 2024 · 0 comments
Open
1 task done

[Bug]: Missing attributes when using LocalBulkWriter #2274

Stevan1996 opened this issue Sep 25, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@Stevan1996
Copy link

Stevan1996 commented Sep 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am trying to use the LocalBulkWriter. When initializing the LocalBulkWriter, I get the following error message. I followed this user guide: https://milvus.io/docs/prepare-source-data.md

    writer = LocalBulkWriter(schema=schema, local_path=".", file_type=BulkFileType.JSON)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/steven/.conda/envs/dpm/lib/python3.11/site-packages/pymilvus/bulk_writer/local_bulk_writer.py", line 42, in __init__
    super().__init__(schema, chunk_size, file_type, **kwargs)
  File "/home/steven/.conda/envs/dpm/lib/python3.11/site-packages/pymilvus/bulk_writer/bulk_writer.py", line 57, in __init__
    if len(self._schema.fields) == 0:
           ^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'fields'
Exception ignored in: <function LocalBulkWriter.__del__ at 0x707a78d6fba0>
Traceback (most recent call last):
  File "/home/steven/.conda/envs/dpm/lib/python3.11/site-packages/pymilvus/bulk_writer/local_bulk_writer.py", line 63, in __del__
    self._exit()
  File "/home/steven/.conda/envs/dpm/lib/python3.11/site-packages/pymilvus/bulk_writer/local_bulk_writer.py", line 67, in _exit
    if len(self._working_thread) > 0:
           ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'LocalBulkWriter' object has no attribute '_working_thread'

Expected Behavior

No response

Steps/Code To Reproduce behavior

No response

Environment details

- pymilvus: 2.4.6
- protobuf: 5.28.2
- grpcio: 1.66.1

Anything else?

No response

@Stevan1996 Stevan1996 added the kind/bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant