Forum

Author Topic: problem with license activation in 1.8.1  (Read 837 times)

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
problem with license activation in 1.8.1
« on: February 28, 2022, 04:24:23 PM »
Hey there,

I have an installed version of 1.8.1 activated with a full license on my machine. Now I'm trying to manipulate some files without the GUI using the stand-alone python lib.
This worked previously with version 1.8.0 on the same machine.

Now since I updated the lib I get "No license found."  Ok, so I tried to activate in a python script by calling
Code: [Select]
Metashape.License.activate('xxxxxxxxxxxxx')

And I get this error:

Code: [Select]
TypeError: descriptor 'activate' for 'Metashape.Metashape.License' objects doesn't apply to a 'str' object
Based on the docs it seems like I should be passing a string:

Code: [Select]
class Metashape.License
License information.
activate(license_key)
Activate software online using a license key.
Parameters key (string) – Activation key.


Any ideas what I am missing here?

Cheers,

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14110
    • View Profile
Re: problem with license activation in 1.8.1
« Reply #1 on: February 28, 2022, 05:28:12 PM »
Hello stephan

It should be Metashape.License().activate('xxxxxxxxxxxxx')
Best regards,
Alexey Pasumansky,
Agisoft LLC

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: problem with license activation in 1.8.1
« Reply #2 on: February 28, 2022, 07:15:26 PM »
Damn that was silly, thanks  ;D