Multiple SQLite files cannot be passed into the constructor of a single SQLite dataset object
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Start with src/graphnet/data/dataset/sqlite/sqlite_dataset.py, especially the _get_all_indices and _establish_connection methods around the traceback locations. Reproduce by constructing an SQLiteDataset with multiple paths and check how index initialization accesses _indices. Done means the dataset can index the supplied database files without raising the reported AttributeError; the issue does not name a test to run.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
If a list of files is passed as the path argument of SQLiteDataset, in the process of defining SQLiteDataset._indices, SQLiteDataset._indices is referenced (this line), causing an error.
To Reproduce
Steps to reproduce the behavior:
Try to instatiate an SQLiteDataset and pass in a list of files to path.
Expected behavior
SQLiteDataset should be able to index the database files that are passed into it.
Full traceback
Please include the full error message to allow for debugging
File "<stdin>", line 1, in <module>
File "/mnt/ffs24/home/mayhewfi/DP/graphnet/src/graphnet/utilities/config/dataset_config.py", line 254, in __call__
created_obj = super().__call__(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/ffs24/home/mayhewfi/DP/graphnet/src/graphnet/data/dataset/dataset.py", line 419, in __init__
self._indices = self._get_all_indices()
^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/ffs24/home/mayhewfi/DP/graphnet/src/graphnet/data/dataset/sqlite/sqlite_dataset.py", line 87, in _get_all_indices
self._establish_connection(0)
File "/mnt/ffs24/home/mayhewfi/DP/graphnet/src/graphnet/data/dataset/sqlite/sqlite_dataset.py", line 117, in _establish_connection
indices = self._indices[i]
^^^^^^^^^^^^^
AttributeError: 'SQLiteDataset' object has no attribute '_indices'
- Ngôn ngữ chính
- Python
- Star
- 117
- Fork
- 115
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graphnet-team/graphnet
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
graphnet-team/graphnet#933 ·
-
Spring cleanĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
graphnet-team/graphnet#927 · 1 bình luận ·
-
Time for a new version release v1.8.1Có thể làm lại được @Aske-Rosted đã nhận 75 ngày trước và không có pull request nào đang mở. Đang mởdecision
graphnet-team/graphnet#924 · 1 người được giao ·
-
Make kaggle checkpoints part of the CICó thể làm lại được @sevmag đã nhận 75 ngày trước và không có pull request nào đang mở. Đang mởbug
graphnet-team/graphnet#921 · 2 bình luận · 1 người được giao ·
-
decision deferred
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
graphnet-team/graphnet#919 ·
Tất cả issue của graphnet-team/graphnet
Issue tương tự
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
docling-project/docling-core#1067 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
correction metadata
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
acl-org/acl-anthology#11101 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] crewai tool create/install/login exit 0 when they failCó thể đã có người làm @Kiko0301 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vllm-project/compressed-tensors#1033 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
chore kaizen ui-rewrite
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
IBM/mcp-context-forge#7681 ·
Maintainer thường phản hồi trong vòng 2 ngày