Hello BenjaminG,
In the current version it's not possible to define the coordinate system of the chunk using the direct assignment, so you need to use the intermediate variable:
crs = PhotoScan.CoordinateSystem("EPSG::4326")
chunk.crs = crs
In the version 1.4.1 you would be able to use direct assignment for chunk.crs.
However, for the coordinate system definition you need to use either valid EPSG codes of the geographic/projected coordinate system (EPSG::9001 - is related to the meters unit, not to a coordinate system), or the WKT (Well-Known Text) line, for example, for the local coordinate system:
crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local Coordinates (m)",LOCAL_DATUM["Local Datum",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]')