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
Expected behaviour
I would like to use pytest-qgis in Windows environnement
Current behaviour
I tried to launch a test with pytest-qgis use but the module can't be initialized
File "C:\Users\jmker\AppData\Local\Programs\Python\Python39\lib\site-packages\_pytest\assertion\rewrite.py", line 171, in exec_module
exec(co, module.__dict__)
File "C:\Users\jmker\AppData\Local\Programs\Python\Python39\lib\site-packages\pytest_qgis\__init__.py", line 21, in <module>
from pytest_qgis.pytest_qgis import * # noqa
File "C:\Users\jmker\AppData\Local\Programs\Python\Python39\lib\site-packages\_pytest\assertion\rewrite.py", line 171, in exec_module
exec(co, module.__dict__)
File "C:\Users\jmker\AppData\Local\Programs\Python\Python39\lib\site-packages\pytest_qgis\pytest_qgis.py", line 34, in <module>
from qgis.core import Qgis, QgsApplication, QgsProject, QgsRectangle, QgsVectorLayer
File "C:\PROGRA~1\QGIS32~1.1\apps\qgis\python\qgis\core\__init__.py", line 25, in <module>
from qgis._core import *
ImportError: DLL load failed while importing _core: La procédure spécifiée est introuvable.
Describe alternatives you've considered
I did try a manual import in a python console and I managed to import Qgis modules
python
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from qgis.core import Qgis, QgsApplication, QgsProject, QgsRectangle, QgsVectorLayer
>>>
Additional context
Os : Windows 10
pytest-qgis : 1.3.0
The text was updated successfully, but these errors were encountered:
Expected behaviour
I would like to use
pytest-qgis
in Windows environnementCurrent behaviour
I tried to launch a test with pytest-qgis use but the module can't be initialized
My
PYTHONPATH
andPATH
are defined for Qgis useDescribe alternatives you've considered
I did try a manual import in a python console and I managed to import Qgis modules
Additional context
Os : Windows 10
pytest-qgis : 1.3.0
The text was updated successfully, but these errors were encountered: