Oumar Diallo
Oumar Diallo

Reputation: 33

Import cv2 error python

Whenever I attempt to import cv2, I always get this error

import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/libgdal.so.1: undefined symbol: sqlite3_column_table_name

I've already created a symbolic link and I have also already installed the libgdal-dev module from the Ubuntu Software Center. Any ideas? Thanks!

EDIT: I did as pbu suggested, and the link was created without fail for the most part. But now, this error comes up:

import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/libgdal.so.1: cannot read file data: Is a directory

Thank you all for your suggestions!

Upvotes: 3

Views: 1875

Answers (1)

Deepak
Deepak

Reputation: 1120

was happen same with me , resolved after :

GDAL 2.1 is available for Ubuntu 16.04 from the UbuntuGIS-Unstable PPA

sudo apt install gdal-bin python-gdal python3-gdal

Upvotes: 1

Related Questions