"Segmentation fault (core dumped)" after installing the required sparse library in a Qiskit env (conda virtual env)

Đang mở
#522 14 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
jupyter-notebook, numpy, python
Lĩnh vực
data

Hướng nghiên cứu

Bắt đầu với issue_with_sparse.log và tái hiện lỗi bằng 01_neural_networks.ipynb cùng lệnh ipython được liệt kê trong môi trường qiskit0.30_test. So sánh các phiên bản s390x của Sparse, NumPy và Numba trên RHEL 8.4, đồng thời ghi lại nguyên nhân đã được xác nhận hoặc bản sửa lỗi tương thích khi notebook chạy mà không yêu cầu nhập liệu hoặc gây segmentation fault.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

upstream

Hi,

We encountered a serious issue when running jupyter notebook code with the support of sparse library.
Can someone help?

Thanks!

Describe the bug
In a Qiskit 0.30 conda virtual env, after installing the required sparse library using pip, the ipython run will error out with
"Segmentation fault (core dumped)" message.
issue_with_sparse.log

To Reproduce

  1. Activate conda virtual env and run the "01_neural_networks.ipynb" sample code with below commands:

conda activate qiskit0.30_test
ipython -c "%run 01_neural_networks.ipynb"
This will prompt you to install the sparse library.

  1. Install sparse library by executing "pip install 'qiskit-machine-learning[sparse]'" inside the conda virtual env
  2. Rerun the "01_neural_networks.ipynb" sample code will produce the "Segmenttation fault" error.

Expected behavior
expect no prompt for install sparse library and no errors popped up for the ipython run

System

  • OS and version: RHEL 8.4 (s390x)
  • Conda: 4.10.1
  • Sparse: version: 0.13.0
  • NumPy version: 1.20.3
  • Numba version: 0.54.1

Additional context
Add any other context about the problem here.

Ngôn ngữ chính
Python
Star
670
Fork
167
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pydata/sparse

Tất cả issue của pydata/sparse

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.