Проблема с импортом cv2 ImportError: /usr/lib/arm-linux-gnueabihf/libXrender.so.1 - PullRequest
0 голосов
/ 13 февраля 2020
Traceback (most recent call last):
  File "read_and_deliver.py", line 6, in <module>
    import cv2
ImportError: /usr/lib/arm-linux-gnueabihf/libXrender.so.1: nonzero padding in e_ident
pi@Pi-Weather:~/weewx-weather-delivery $ sudo apt-get purge python-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  python-opencv*
0 upgraded, 0 newly installed, 1 to remove and 36 not upgraded.
After this operation, 2,402 kB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libparted2:armhf' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
pi@Pi-Weather:~/weewx-weather-delivery $
...