7

I’m developing my first QGIS plugin and I have to use two external libraries not included in the default OSGeoW64 installation: Couchdb and Pandas.

I would like to include those libraries in my plugin’s directory so that users don’t have to deal with the installation of them.

So I created a folder called lib, inserted in it an empty _init_.py and downloaded in it the libraries using pip:

python3 -m pip install -t lib couchdb

The directory looks like this:

mhyconos
|--- lib
     |--- bin
     |--- couchdb 
     |--- CouchDB-1.2.dist-info
     |--- _init_.py
|--- _init_.py
|--- mhyconos.py
... 

In mhyconos.py I imported couchdb using

from lib import couchdb 

but when I install the plugin, this is what happens:

enter image description here

What am I doing wrong?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.