QGIS Python API VSCode

preview_player
Показать описание
Setup Windows to make it possible for VSCode to work with QGIS Python API Intellisense
Рекомендации по теме
Комментарии
Автор

Deserve a subscribe mate i was struggling in environment of qgis and vscode and i finally found your video. Great explained please make more video about qgis plugin development. Thank you my problem is solved!

reynardtorculas
Автор

Thanks it helped me. For the tkinter part, in case somebody uses advanced QGIS installer it is possible to select this module and it will be automatically added (and upgraded in future) without manual copying of folders and DLLs

MrGregsa
Автор

Hi, I'm a bit lost. Where do the paths that you paste (8:30 min) come from ? Where did you copy it from ? THank you !

luciebernard
Автор

For me importing qgis.core did not work at first even though I followed the steps. somewhow renaming the file worked for me. Or it was closing the command promptand doing it again . idk

drew
Автор

my pyqgis functions are now readible by vscode but when I run the code it is giving me error as
File "c:\qgis\import qgis.py", line 1, in <module>
import qgis
File "C:\PROGRA~1\QGIS34~1.1\apps\qgis\python\qgis\__init__.py", line 78, in <module>
from qgis.PyQt import QtCore
File "C:\PROGRA~1\QGIS34~1.1\apps\qgis\python\qgis\PyQt\QtCore.py", line 24, in <module>
from PyQt5.QtCore import *
ModuleNotFoundError: No module named 'PyQt5.QtCore'

waniaishtiaque
Автор

me de uma dica, fiz tudo, e a variável py segue como não definida no vscode

RafaBeerChopeiras
Автор

i think you should find a more pythonic way to make it work

mustaphatitou
Автор

I have install pyenv in my desktop. and when I put "set py" I got:





---

C:\Program Files\QGIS 3.18> "C:\Microsoft VS Code\Code.exe"

andresingenieroambiental
Автор

I did everything in the video.
If I run (Shft+Enter) the QGIS python lines line by line, it prints the same lines in Terminal below. But if I run the python script in one run, it prints this:
File "<stdin>", line 1
&
^
SyntaxError: invalid syntax

In neither case does it do what is in the program code.

zoltandeveny
join shbcf.ru