Forum

Author Topic: "Saving is disabled"  (Read 192 times)

lsnrc

  • Newbie
  • *
  • Posts: 6
    • View Profile
"Saving is disabled"
« on: February 15, 2019, 10:02:56 PM »
Hi,

I am writing a Python script to build a dense point cloud from a set of images. Everything seems to be working fine, except for exporting (exportPoints) and saving the Metashape document. In fact, just a simple code as follows returns an OSError: DOcument.save(): saving is disabled.

import Metashape
doc    = Metashape.Document()
doc.save('test_001.psx')
chunk    = doc.addChunk()
doc.save()

I have checked the doc.read_only, it is set to False.
Any help would be appreciated.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9917
    • View Profile
Re: "Saving is disabled"
« Reply #1 on: February 16, 2019, 12:46:07 PM »
Hello lsnrc,

Is Metashape Pro activated?
Code: [Select]
print(Metashape.app.activated)
Best regards,
Alexey Pasumansky,
AgiSoft LLC

lsnrc

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: "Saving is disabled"
« Reply #2 on: February 18, 2019, 04:33:37 PM »
Hi Alexey,

print(Metashape.app.activated) is returning False. I guess this is the reason. But how do I activate it ?
Thanks again !

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9917
    • View Profile
Re: "Saving is disabled"
« Reply #3 on: February 18, 2019, 04:57:47 PM »
Hello lsnrc,

You can activate either from the GUI (if possible) or using the following terminal command:

metashape.sh --activate 11111-22222-33333-44444-55555
or
metashape.exe --activate 11111-22222-33333-44444-55555
Best regards,
Alexey Pasumansky,
AgiSoft LLC

lsnrc

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: "Saving is disabled"
« Reply #4 on: February 18, 2019, 05:02:56 PM »
Thank you Alexey.
In fact I wasn't running the python script from the GUI, so that is why my license was not activated.