2

Whenever I import qiskit, I get the following error. Anyone know why?


ImportError: dlopen(/opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so, 2): Symbol not found: _aligned_alloc
  Referenced from: /opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so
  Expected in: /usr/lib/libSystem.B.dylib
 in /opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so

A. Fattal
  • 77
  • 3

1 Answers1

0

It seems like there was an issue while installing one of the Qiskit dependencies called tweedledum. You can try the following in your anaconda env:

pip install --upgrade --force-reinstall tweedledum
luciano
  • 399
  • 4
  • 13
  • Thanks but I tried that but I get the same error, unfortunately – A. Fattal Aug 02 '21 at 15:35
  • are you getting any error when executed the suggested command? – luciano Aug 05 '21 at 06:10
  • No, I'm not. I'm able to reinstall tweedledum. Although, I fixed the issue by downgrading the module so I speculate that it might have to do with some incompatibility with my OS or something like that. Thanks for the help! – A. Fattal Aug 06 '21 at 19:31