Forum

Author Topic: read-only and saving problem in headless mode  (Read 2069 times)

moeie

  • Newbie
  • *
  • Posts: 3
    • View Profile
read-only and saving problem in headless mode
« on: January 30, 2018, 06:18:47 PM »
I ran a GUI correctly running script in a headless mode on a high performance cluster (CentOS) using: photoscan.sh -platform offscreen -r <scriptName.py>, I got read-only problem and saving problem. The error messages are as follows:
          "OSError: saving is disabled"
          "OSError: Document.save(): editing is disabled in read-only mode"
Is there anyway change the read property of the document in a commanline? Thanks.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13995
    • View Profile
Re: read-only and saving problem in headless mode
« Reply #1 on: January 30, 2018, 06:24:47 PM »
Hello moeie,

You can try to apply
Code: [Select]
doc.read_only = Falsefor currently opened project.
Best regards,
Alexey Pasumansky,
Agisoft LLC

moeie

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: read-only and saving problem in headless mode
« Reply #2 on: January 30, 2018, 06:41:27 PM »
I tried this command line. I got the same error.

moeie

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: read-only and saving problem in headless mode
« Reply #3 on: January 30, 2018, 06:42:12 PM »
Hello moeie,

You can try to apply
Code: [Select]
doc.read_only = Falsefor currently opened project.

I tried the commandline. But I got the same error.