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

Aperta
#522 14 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
jupyter-notebook, numpy, python
Ambito
data

Direzione di ricerca

Inizia da issue_with_sparse.log e riproduci il problema usando 01_neural_networks.ipynb e il comando ipython indicato nell’ambiente qiskit0.30_test. Confronta le versioni s390x di Sparse, NumPy e Numba su RHEL 8.4 e documenta una causa confermata o una correzione di compatibilità quando il notebook viene eseguito senza richiedere input né causare segmentation fault.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
670
Fork
167
Merge medio
3g 4h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pydata/sparse

Tutte le issue di pydata/sparse

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.