Skip to content

PROJ_DATA error

Hi @b382953 ,

The likely solution to avoid that error from happening is to explicitly set the env variable such as

    def run_tool(
        self, config_dict: dict[str, str|int|bool]
        ):
        '''Definition of the tool that runs the cli.

        Parameters:
        -----------
        config_dict: dict
            Plugin configuration stored in a dictionary
        '''
        os.environ['PROJ_DATA'] = f'{self.class_basedir}/plugin_env/share/proj/'

in the wrapper file.

freva does not actually load the whole plugin_env/ but plugin_env/bin so in the cases that e.g geopandas need to find proj.db that is located in plugin_env/share/proj they will not find it.