Hello,
I’m using a Python Caller in an FME workspace. In the python script I’m trying to read in a gpkg file using the code below:
#
import geopandas as gpd
import pandas as pd
import os
def FeatureProcessor(feature):
path_gpkg = feature.getAttribute('path_gpkg')
print(path_gpkg)
print("file exists - ", os.path.exists(path_gpkg))
gdf = gpd.read_file(path_gpkg)
However, I get an error saying:
Python Exception <DataSourceError>: '/xxx/abc.gpkg' does not exist in the file system, and is not recognized as a supported dataset name.
It is strange because the line ‘print("file exists - ", os.path.exists(path_gpkg))’ returns True.
Has anyone come across anything similar?
Thanks :)



