You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to automate the import of OS MasterMap Typography layers in PostGIS without using the QGIS UI directly.
I have OSGeo4W, Python, QGIS and all required tools installed, but when running python os-translator-ii-cli.py --osmm-data-type "OS Mastermap Topography (v9)" --input-path <gz files> --host <hostname> --database <db> --user <user> --schema <schema>
it gives the error
H:\ostranslator-ii\OSTranslatorII>python os-translator-ii-cli.py
Traceback (most recent call last):
File "H:\ostranslator-ii\OSTranslatorII\os-translator-ii-cli.py", line 25, in <module>
from .import_manager import ImportManager
ImportError: attempted relative import with no known parent package
H:\ostranslator-ii\OSTranslatorII>
Now, as a workaround I've removed the prefixing dot from each import, as there is no parent package. That works, but I'm wondering if there is a less-hacky method to running the CLI script directly from a command line window.
Hello, I'm trying to automate the import of OS MasterMap Typography layers in PostGIS without using the QGIS UI directly.
I have OSGeo4W, Python, QGIS and all required tools installed, but when running
python os-translator-ii-cli.py --osmm-data-type "OS Mastermap Topography (v9)" --input-path <gz files> --host <hostname> --database <db> --user <user> --schema <schema>
it gives the error
Now, as a workaround I've removed the prefixing dot from each import, as there is no parent package. That works, but I'm wondering if there is a less-hacky method to running the CLI script directly from a command line window.
My python env variables are:
as QGIS's python modules needed to be in PYTHONPATH to import the qgis QT and other python modules.
The text was updated successfully, but these errors were encountered: