Agisoft Metashape > Bug Reports
python chunk.exportReport fails to run on Metashape 1.6.1 - err_no 4182 + 4177
belinda:
Running Metashape 1.6.1 with Python 3.5 on Ubuntu 16.04. For one of the tifs I'm using Metashape with, it can get through chunk.exportRaster() fine but then errors out on chunk.exportReport with the following error messages:
--- Code: ---"ExportReport: path = /mnt/kairos/data/output/dcp-anadarko-57-optical/20210607145600-dcp-anadarko-57-optical-report.pdf",
"ERROR: error_no=4182, detail_no=0",
"ERROR: error_no=4182, detail_no=0",
"ERROR: error_no=4182, detail_no=0",
"ERROR: error_no=4182, detail_no=0",
"ERROR: error_no=4177, detail_no=0"
... [more of the same] ...
self.chunk.exportReport(report_path)", "OSError: Can't create file: /mnt/kairos/data/output/dcp-anadarko-57-optical/20210607145600-dcp-anadarko-57-optical-report.pdf"
--- End code ---
Is there a way to get more information on what these error numbers indicate? Also have tested the same code flow with other images and it generated report correctly for them.
Alexey Pasumansky:
Hello belinda,
I suggest to check the latest release version (or at least 1.6.6 version), as the issue seems to be related to the already fixed bug.
belinda:
I upgraded the Metashape python package to 1.7.3 but still see the same error_no with 4177 and 4182 when trying to exportReport.
Alexey Pasumansky:
Hello belinda,
Can you please provide the similar output for exportReport command from the 1.7.3 version?
belinda:
I did also print out the version of metashape to make sure I was running the correct version.
--- Code: ---2021-07-06 21:09:58,704 INFO [StitchCLI] Metashape version: 1.7.3
INFO [Stitch] exporting orthomosaic to /mnt/kairos/data/output/hilcorp-61-optical/hilcorp-61-optical.tif
ExportRaster: path = /mnt/kairos/data/output/hilcorp-61-optical/hilcorp-61-optical.tif, image_format = TIFF, projection = WGS 84\ngenerating 41139 x 4357 raster in 1 x 1 tiles
2021-07-06 21:20:26,270 INFO [Stitch] optimizing tiff...\n2021-07-06 21:21:09,367
INFO [Stitch] exporting report to /mnt/kairos/data/output/hilcorp-61-optical\nExportReport: path = /mnt/kairos/data/output/hilcorp-61-optical/20210706210954-hilcorp-61-optical-report.pdf
ERROR: error_no=4182, detail_no=0
ERROR: error_no=4182, detail_no=0
ERROR: error_no=4182, detail_no=0
ERROR: error_no=4182, detail_no=0
ERROR: error_no=4177, detail_no=0
ERROR: error_no=4177, detail_no=0
... [more of error_no 4177] ...
ERROR: error_no=4177, detail_no=0
ERROR: error_no=4133, detail_no=0
ERROR: error_no=4133, detail_no=0
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version