Forum

Author Topic: No license found. Details: No license for product (-1)  (Read 5408 times)

bbbares

  • Newbie
  • *
  • Posts: 21
    • View Profile
No license found. Details: No license for product (-1)
« on: April 15, 2020, 06:33:59 PM »
I am running my python script that imports the Metashape module on an AWS EC2 instance that is running ubuntu. My previous solution allowed me to run the script from within the directory that contained the script itself and the .lic file. I now need to be able to run the file from any directory e.x. "python3 /path/to/directory/scripy.py". When I do this I get the following error "No license found. Details: No license for product (-1)". I tried the solution recommended in an older forum post by moving the .lic file into the Metashape module folder .../python3.6/site-packages/Metashape. This solution did not work for me and I am confused as to how to proceed. Any help is greatly appreciated!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15160
    • View Profile
Re: No license found. Details: No license for product (-1)
« Reply #1 on: April 15, 2020, 07:16:26 PM »
Hello bbbares,

If Metashape Pro license is activated on that computer, I would suggest to define agisoft_LICENSE environment variable as a path to the license file containing folder.
Best regards,
Alexey Pasumansky,
Agisoft LLC

bbbares

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: No license found. Details: No license for product (-1)
« Reply #2 on: April 15, 2020, 09:09:13 PM »
That did it thank you!