-1

Python3.8 in PyCharm

pydicom==2.1.2

numpy==1.20.2

When calling pydicom, I get this error: ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Tried upgrading/re-installing pydicom, re-installing numpy.

enter image description here

Stack_Protégé
  • 302
  • 1
  • 15
  • Make sure you have current `pydicom`, `numpy` and `libjpeg-openjpeg` versions. Which versions are you using? – MrBean Bremen Nov 07 '22 at 17:37
  • 1
    Explanation of what might have gone wrong in [this](https://stackoverflow.com/a/66743692) and [this](https://stackoverflow.com/a/69528768) answer. Maybe it could help to reinstall the pylibjpeg-openjpeg package. – user7138814 Nov 07 '22 at 18:09

1 Answers1

0

Updating to numpy==1.22.0 solved the problem. enter image description here

Stack_Protégé
  • 302
  • 1
  • 15