Then one has to wonder what you're running. Probably 95% of the code for pgAdmin is in the web/ directory in the macOS build. Are you running a container or the Python package?
In pgadmin 4.16 I get the following error when I try to export a file: "expected str, bytes or os.PathLike object, not NoneType". Any thoughts? Thanks.