It sounds like you are trying to use the Water Geometric Network Editing and Analysis solution which is part of ArcGIS Solutions for Water:
Water Geometric Network Editing and Analysis requires specific technical experience and software
ArcMap (Standard or Advanced) 10.2.1, 10.4 - 10.7
Consequently, it appears that your ArcGIS Desktop ...
The answer seems to be that this cannot be done, at least using the current versions of both packages. Because as, you noted, the latest versions of fiona and rasterio rely on different GDAL versions. There is likely an older version of rasterio (1.0.*) that could use GDAL 2.4.1.
I have been using fiona (1.8.6), rasterio (1.0.22) and gdal (2.4.0) fine in ...
PostGIS needs to be compiled with protobuf support. If not compiled with protobuf support, you will get error message: error: Missing libprotobuf-c
Steps to compile PostGIS with protobuf support:
#install from repository (if possible)
apt-get install protobuf-c-compiler
#install protobuf (only if protobuf-c-compiler from repository is
#not working or ...