Closed SPlanzer closed 4 years ago
This is because .docker/qgis/scripts/docker-entry.sh
is calling DatabaseConfiguration.py
as a module level rather than as part of a python package.
see - https://stackoverflow.com/questions/14132789/relative-imports-for-the-billionth-time for more
This can be solved by either making relative imports absolute
(eg. from NZGBplugin.LINZ.gazetteer.gui import Config
)
or configuring database parameters via the QGIS startup script
Your
As part of porting python2 > 3 all implicit relative imports were replaced with explicit relative imports. (see python docs for more for example considering
and considering
DatabaseConfiguration.py
import Config
becomesfrom import . Config
This change worked well when testing porting locally but testing with the docker container is throwing the below import error