Forum

Author Topic: chunk.buildModel creating invalid directory  (Read 1426 times)

rkjreet

  • Newbie
  • *
  • Posts: 1
    • View Profile
chunk.buildModel creating invalid directory
« on: June 05, 2024, 06:40:59 PM »
I'm running a python script which encounters an error at this line when building a model:

chunk.buildModel(surface_type=Metashape.Arbitrary, interpolation=Metashape.EnabledInterpolation, face_count=Metashape.HighFaceCount)

The error I'm getting is: Can't create directory: The system cannot find the path specified (3): C:/Users/[path to directory].files/0/0/model.tmp
Why is the path being created this way how can I resolve this?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: chunk.buildModel creating invalid directory
« Reply #1 on: June 07, 2024, 12:38:28 PM »
Hello rkjreet,

Do you have Metashape project saved by the script in C:/Users/ folder?

During the processing Metashape is saving intermediate processing files in project.files directory, so make sure that the project is saved under the valid path and that the current user account has read/write access rights to that location. Also I suggest to disable any file indexing and data synchronization services for the project folder location, as those services could affect the process of project files being written to the folder.
Best regards,
Alexey Pasumansky,
Agisoft LLC