AttributeError: module 'pyarrow' has no attribute 'ChunkedArray' on Patch Demo
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- plotly, python, streamlit
- Lĩnh vực
- data-visualization
Hướng nghiên cứu
Bắt đầu với apps/009_PATCh_demo/app.py tại lệnh gọi vẽ biểu đồ quanh dòng 61, và tái hiện lỗi thông qua URL Patch Demo được liên kết. Kiểm tra môi trường pyarrow, Plotly và Pyodide liên quan trong traceback; công việc được xem là hoàn tất khi bản demo hiển thị biểu đồ đường mà không gặp ChunkedArray AttributeError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Happened to notice this.
https://patch.datatoinsight.org/app?file=https://raw.githubusercontent.com/data-to-insight/patch/main/apps/009_PATCh_demo/app.py&req=plotly
:Logging for ref, as no time to look further atm.
Might be a lib ver incompatibility issue - pyodide? Pyarrow.
Error:
AttributeError: module 'pyarrow' has no attribute 'ChunkedArray'
Traceback:
File "/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "/home/pyodide/app.py", line 61, in
fig = px.line(df, x="time_period", y="number", title=f"{chart_title}")
File "/lib/python3.10/site-packages/plotly/express/_chart_types.py", line 270, in line
return make_figure(args=locals(), constructor=go.Scatter)
File "/lib/python3.10/site-packages/plotly/express/_core.py", line 2755, in make_figure
fig.add_traces(frame_list[0]["data"] if len(frame_list) > 0 else [])
File "/lib/python3.10/site-packages/plotly/graph_objs/_figure.py", line 992, in add_traces
return super(Figure, self).add_traces(
File "/lib/python3.10/site-packages/plotly/basedatatypes.py", line 2191, in add_traces
data = self._data_validator.validate_coerce(data)
File "/lib/python3.10/site-packages/_plotly_utils/basevalidators.py", line 2713, in validate_coerce
trace = self.get_trace_class(trace_type)(
File "/lib/python3.10/site-packages/plotly/graph_objs/_scatter.py", line 3634, in init
self["x"] = _v
File "/lib/python3.10/site-packages/plotly/basedatatypes.py", line 4860, in setitem
self._set_prop(prop, value)
File "/lib/python3.10/site-packages/plotly/basedatatypes.py", line 5199, in _set_prop
val = validator.validate_coerce(val)
File "/lib/python3.10/site-packages/_plotly_utils/basevalidators.py", line 410, in validate_coerce
v = copy_to_readonly_numpy_array(v)
File "/lib/python3.10/site-packages/_plotly_utils/basevalidators.py", line 97, in copy_to_readonly_numpy_array
v = nw.from_native(v, allow_series=True, pass_through=True)
File "/lib/python3.10/site-packages/narwhals/stable/v1/init.py", line 1620, in from_native
result = _from_native_impl(
File "/lib/python3.10/site-packages/narwhals/translate.py", line 626, in _from_native_impl
elif is_pyarrow_chunked_array(native_object):
File "/lib/python3.10/site-packages/narwhals/dependencies.py", line 218, in is_pyarrow_chunked_array
return (pa := get_pyarrow()) is not None and isinstance(ser, pa.ChunkedArray)
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 data-to-insight/patch
-
PATCh future development optionsĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
data-to-insight/patch#24 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
data-to-insight/patch#18 ·
Tất cả issue của data-to-insight/patch
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pytest-dev/pyfakefs#1367 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
IFEvalG exclude_word_harder misses the keyword next to punctuation, at the start or end of the text, and in other letter caseCó thể đã có người làm @damienen đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
allenai/open-instruct#2151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(plan): support convertorLabels and convertorAffinity in Plan resourceCó thể đã có người làm @AmenB đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
RedHatQE/openshift-python-wrapper#2849 · 1 bình luận ·
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 65/100
Maintainer thường phản hồi trong vòng 25 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
libnativeapi/nativeapi#21 ·