Forum

Author Topic: Where to put floating metashape.lic for standalone python module  (Read 8302 times)

djyoung

  • Newbie
  • *
  • Posts: 23
    • View Profile
Where to put floating metashape.lic for standalone python module
« on: November 11, 2019, 09:42:39 PM »
Hello -- I am using the Metashape standalone python module on Linux via a floating license. What directories does the Metashape standalone Python module search for the metashape.lic file (which points to the license server)? Is there a way I can modify the directories it searches? So far I have only gotten it to find metashape.lic if it is in my BASH working directory at the time I call Python.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15429
    • View Profile
Re: Where to put floating metashape.lic for standalone python module
« Reply #1 on: November 12, 2019, 02:09:52 PM »
Hello djyoung,

I can suggest to define agisoft_LICENSE or RLM_LICENSE environment variable that will be pointing to the path to the valid license file (either node-locked or floating - redirecting to the server).
Best regards,
Alexey Pasumansky,
Agisoft LLC

djyoung

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Where to put floating metashape.lic for standalone python module
« Reply #2 on: November 19, 2019, 08:06:50 AM »
Thanks Alexey. However, this is still not working for me:

(base) user@computer:~$ agisoft_LICENSE=/opt/metashape-pro/
(base) user@computer:~$ python
Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Metashape
No license found.
Details: No license for product (-1)
>>>


djyoung

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Where to put floating metashape.lic for standalone python module
« Reply #3 on: November 21, 2019, 06:23:22 PM »
My apologies; this was a Linux newbie issue, not a Metashape issue. I simply had to add 'export' to the command:

export agisoft_LICENSE=/opt/metashape-pro/

Alternatively, on my distro (Ubuntu 18.04), it works to add the line 'agisoft_LICENSE=/opt/metashape-pro/' to /etc/environment