CSIRO-Precision-Agriculture / PAT_QGIS_Plugin

PAT is a QGIS plugin containing a collection of tools for processing precision agriculture data.
Other
29 stars 9 forks source link

Couldn't load plugin 'pat' due to an error when calling its classFactory() method #70

Open wgivens1978 opened 1 month ago

wgivens1978 commented 1 month ago

Getting the following error whn installing PAT:

Couldn't load plugin 'pat' due to an error when calling its classFactory() method

AssertionError: Could not find PROJ_LIB directory Traceback (most recent call last): File "C:\PROGRA~1\QGIS33~1.2\apps\Python312\Lib\site-packages\pyprecag__init__.py", line 65, in proj_lib = pyproj.datadir.pyproj_datadir ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pyproj.datadir' has no attribute 'pyproj_datadir'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\PROGRA~1/QGIS33~1.2/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin plugins[packageName] = package.classFactory(iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/WadeGivens/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pat__init__.py", line 94, in classFactory from pyprecag import config File "C:\PROGRA~1/QGIS33~1.2/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\PROGRA~1\QGIS33~1.2\apps\Python312\Lib\site-packages\pyprecag__init__.py", line 73, in assert os.path.isfile( ^^^^^^^^^^^^^^^ AssertionError: Could not find PROJ_LIB directory

Python version: 3.12.5 (main, Aug 8 2024, 11:21:54) [MSC v.1938 64 bit (AMD64)] QGIS version: 3.38.2-Grenoble Grenoble, 130c432394

jose-renan-silva commented 1 month ago

Obtive o mesmo problema

Carlytax commented 1 month ago

Hi! I have the same problem! Can fix them some day? I reinstall QGIS for solve it, but the error persist!

          File "C:\PROGRA~1\QGIS33~1.3\apps\Python312\Lib\site-packages\pyprecag\__init__.py", line 65, in 
          proj_lib = pyproj.datadir.pyproj_datadir
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         AttributeError: module 'pyproj.datadir' has no attribute 'pyproj_datadir'

         During handling of the above exception, another exception occurred:

         Traceback (most recent call last):
          File "C:\PROGRA~1/QGIS33~1.3/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin
          plugins[packageName] = package.classFactory(iface)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "C:\Users/Carla/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pat\__init__.py", line 94, in classFactory
          from pyprecag import config
          File "C:\PROGRA~1/QGIS33~1.3/apps/qgis/./python\qgis\utils.py", line 923, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "C:\PROGRA~1\QGIS33~1.3\apps\Python312\Lib\site-packages\pyprecag\__init__.py", line 73, in 
          assert os.path.isfile(
          ^^^^^^^^^^^^^^^
         AssertionError: Could not find PROJ_LIB directory

2024-10-02T09:35:55 INFO Estado de la aplicación: Variable de entorno QGIS_PREFIX_PATH: C:/PROGRA~1/QGIS33~1.3/apps/qgis Prefijo: C:/PROGRA~1/QGIS33~1.3/apps/qgis Ruta de complementos: C:/PROGRA~1/QGIS33~1.3/apps/qgis/plugins Ruta de datos del paquete: C:/PROGRA~1/QGIS33~1.3/apps/qgis/. Nombre del tema activo: default Ruta del tema activo: C:/PROGRA~1/QGIS33~1.3/apps/qgis/./resources/themes\default\icons/ Ruta del tema predeterminado: :/images/themes/default/ Rutas de búsqueda de SVG: C:/PROGRA~1/QGIS33~1.3/apps/qgis/./svg/ C:/Users/Carla/AppData/Roaming/QGIS/QGIS3\profiles\default/svg/ Ruta de la base de datos del usuario: C:/PROGRA~1/QGIS33~1.3/apps/qgis/./resources/qgis.db Ruta de la base de datos de autenticación: C:/Users/Carla/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db