Environment Setup for Plugin Development with QGIS 3

preview_player
Показать описание
Learn to setup a terminal and IDE that has access to the PyQGIS Python modules.

Рекомендации по теме
Комментарии
Автор

Thank you so much Konrad! This is very very helpful.
I myself are now going to try to make my own QGIS plugins for features that I've been missing.

I'm a novice when it comes to the very coding itself, but I'm learning :).
Hope to see more videos from you in the future. Keep up the good work sir!

talven
Автор

Hi Mr. Konrad, your video is very helpful. I modified the python-qgis.bat file in the qgis /bin folder by inserting the last line for starting PyCharm (I'm talking about QGis 3.34 and Python 3.9 on Windows OS). Unfortunately I can't use the pb-tool commands from whatever terminal I use, cmd, OSGeo4W, whether started from Windows or in the PyCharm terminal. This is despite pb-tool (latest version) results installed as per 'pip list'. My QGis installation was not done using OSGeo4W setup and the PyCharm interpreter was set to QGis (\bin\python3.exe folder). The message I get when I try pb-tool commands, for example 'pb-tool --help', is that pb-tool is not an executable or bat file!

WolverineVIAF
Автор

Hi,
Do you have any idea about this error ;
"Logged warning: Duplicate provider native registered"

tugrull
Автор

i got this message 'pb_tool' is not recognized as an internal or external command,
operable program or batch file.

VirinchieHygen
Автор

This is great, but is there a way to run pyqgis in pycharm? I mean not for building plugins. I am used to Arcpy and would like to do the same with PyQGIS.

konanpruiksma
Автор

This video is very helpful. Thank you so very much!

anshulkhandelwal
Автор

followed all instruction as mentioned still I got error like this:

RuntimeError: the sip module implements API v12.0 to v12.4 but the qgis._gui module requires API v12.6

anuragkulkarni
Автор

Hi Mr. Konrad,


I have this issue when I was running the pygis.bat, particulary after install pb_tool

Warning: the script pybabel.exe is intalled in which is not on PATH
Consider adding this directory to PATH or, if you prefer to surpress this waring, use --no-warn-script-location.
Warning: the sphinx-apidoc.exe is intalled in which is not on PATH
Consider adding this directory to PATH or, if you prefer to surpress this waring, use --no-warn-script-location.
Warning: the script pb_tool.exe and pbt_exe are intalled in which is not on PATH
Consider adding this directory to PATH or, if you prefer to surpress this waring, use --no-warn-script-location.

later, when I check with type pb_tool, it comes 'pb_tool' is not recognized as an internal or external command, operable program batch file.


Thank you Mr. Konrad,

iqbaltriputra
Автор

I´m trying to do this to continue with my course on your website but I'm stuck at this stage as I have a MAC and I´ve not been able to find examples to set this up.
Any advice on where to look for references?
Thanks

gregoriomaya
Автор

HEY! i have a problem doing this.
and i do the upgrade of pip in the end this give me an error.
This is the erro:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Acesso negado:
Consider using the `--user` option or check the permissions.


can you help ?

joaofolgado
Автор

Hi Konrad,

Despite numerous attempts to get this to work, I still unfortunately receive the following error when trying to import qgis.core:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'qgis'

Are you familiar with this problem and/or know how to solve it?

Your help would be greatly appreciated.

PWDr
Автор

i can not find the pycharm.cmd while i have pycharm installed same applies to pyqgis.cmd where is it on muy computer?
Please HELP

arnoldkilaini
Автор

Thank you for your videos! One question I do have is using pb_tool. I am able to successfully download pb_tool using the same method you used in your videos. However, afterwards when I try and run $ pb_tool, I get an error stating 'command not found'. Any suggestions? Thanks!

mitchellg.
Автор

Sorry that's a fail for me I don't have Git nor do I know what it is or does. So I guess that the end for me. Not sure why you explained all the other lines just to end with "that's git"? Oh its all a bit out of date. There are a bunch of items that need adding the path and I'm really thinking do I really want to spend my time in DOS world, one I left 25years ago.

juncusbufonius
Автор

Gives error
Attribute error: sys.flags has no attribute 'utf8_mode'
can someone help me out ?

kaushilkundalia