[Qgis-user] Plugin Builder: ImportError: attempted relative import
L.W.
eaglelw at gmx.de
Thu Feb 17 00:22:32 PST 2022
Hello,
can someone point me to resolve the error?
I made a plugin-template with plugin builder and tried to run this in
qgis (python editor) without making any changes.
regards
# Python Console
# Use iface to access QGIS API interface or type help(iface) for more info
# Security warning: typing commands from an untrusted source can harm
your computer
exec(open('[...]light.py'.encode('utf-8')).read())
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS32~2.3\apps\Python39\lib\code.py", line 90, in
runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "<string>", line 28, in <module>
File "C:\PROGRA~1/QGIS32~2.3/apps/qgis/./python\qgis\utils.py", line
888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: attempted relative import with no known parent package
More information about the Qgis-user
mailing list