The files are unzipped into \omf\ and they have an __init__.py file in that folder, it should at least FIND it...

Am 06.02.2019 um 15:34 schrieb Richard Duivenvoorde:
On 2/6/19 12:04 PM, Paul Riedel wrote:
Dear Devs.

Kind of a help request here. Usually I would ask in a Discord or some
other chat program but there doesn't seem to be one?
I am trying to write a plugin to import Open Mining Format data into
QGIS(and maybe export it??)
Anyway, I went through the process of setting up a new plugin through
the Plugin Creator Plugin, went through the hassle of doing the
resources on Windows by doing
https://gis.stackexchange.com/questions/273552/pyrcc5-is-not-recognized-as-an-internal-or-external-command

since OS4Geo-shell doesn't recognize the bin and has no access to the
.exe for some reason.

So the plugin initializes and shows in QGIS.
Now, I copied the OMF library files into my plugin folder so now it
contains
python\plugins\omf_loader\omf\
However, upon trying to import the library by calling "import omf" or
"from . import omf" in the "run" Method, I get the error that the
library can not be found.
This is weird since I had a look at other plugins and they also use
local imports for helper functions...


Can you provide any help?
Hi Paul,

besides the mailinglist there is a irc channel and a gitter channel
(with a bridge to the irc and vv):
https://gitter.im/qgis/QGIS

But indeed this should work, something like

from .omf.base import UidModel

maybe?
Are you sure you have the python files unzipped there?


Regards,

Richard Duivenvoorde

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to