Package Details: agisoft-metashape-pro 1.8.3-1

Git Clone URL: https://aur.archlinux.org/agisoft-metashape-pro.git (read-only, click to copy)
Package Base: agisoft-metashape-pro
Description: Photogrammetric processing of digital images and 3D spatial data generation software. Professional edition
Upstream URL: https://www.agisoft.com/
Licenses: custom, custom:Agisoft EULA
Provides: agisoft-metashape-pro, agisoft-network-monitor, agisoft-viewer
Submitter: dobedobedo
Maintainer: dobedobedo
Last Packager: dobedobedo
Votes: 2
Popularity: 0.066642
First Submitted: 2020-03-10 05:20 (UTC)
Last Updated: 2022-04-28 17:00 (UTC)

Pinned Comments

dobedobedo commented on 2021-08-18 20:55 (UTC) (edited on 2021-08-20 12:40 (UTC) by dobedobedo)

I encountered an issue the licence becomes invalid and cannot be deactivated. Here's the reply from agisoft support:

Please note that during the license activation of node-locked license an additional so-called "rehostable" directory is created. It is used later to validate the available license and stores the system parameters, that why it is important to deactivate the license before applying any major changes to the system, such as OS upgrade/re-install or hardware components replacement. 
The default location of the "rehostable" directory differs depending on the OS used:
on Windows - C:/ProgramData/Reprise/agisoft/photoscan-pro/
on Linux  -  /var/tmp/agisoft/photoscan-pro/
on macOS - /Library/Application Support/Reprise/agisoft/photoscan-pro/
It is possible to alter the default location by setting up AGISOFT_REHOST_PATH environment variable prior to the license activation. Use only safe location that wouldn't be cleared by any background services, as any modification of the "rehostable" directory contents including its removal will lead to the license invalidation.
During the activation and application utilization, please make sure that current user has access rights to the rehostable directory and folder where from Metashape Pro is started (the license file will be written to that folder).

If you decide to customize the rehsotable id folder location, make sure to do that prior to the license activation (set up env. variable, reboot and then activate Metashape license).

Metashape is using a 3rd party activation system developed by Reprisesoftware (https://reprisesoftware.com/). As far as we are aware, the following changes in hardware configuration would likely affect the activated license: adding/removing hard drive (HDD, SSD), adding/removing RAM modules, adding/removing GPU, replacing network card. Additionally MAC-address changes would affect the license, as well as major OS upgrades.

Therefore we recommend to deactivate Metashape license before any of these operations are applied to the system.

So make sure to deactivate the licence before any major system upgrade and then reactivate it.

To deactivate the licence, use

sudo agisoft-metashape-pro --deactivate

dobedobedo commented on 2020-09-08 02:42 (UTC)

Check the forum thread here:
https://www.agisoft.com/forum/index.php?topic=10943.0
There is a workaround for installing external python modules.

dobedobedo commented on 2019-10-01 15:23 (UTC) (edited on 2020-07-29 05:21 (UTC) by dobedobedo)

Run the following command to activate the product

sudo agisoft-metashape-pro --activate 11111-22222-33333-44444-55555

NOTE: the number after "--activate" is your node-locked license

Latest Comments

harpium commented on 2022-01-21 06:49 (UTC) (edited on 2022-01-21 07:11 (UTC) by harpium)

I got it to work. Just had to delete lib/libstdc++.so.6. https://www.agisoft.com/forum/index.php?topic=14115.0

This happened with a fresh install on two computers.

dobedobedo commented on 2022-01-13 14:17 (UTC)

@ harpium, also see if this thread help
https://www.agisoft.com/forum/index.php?topic=6994.msg33727#msg33727

dobedobedo commented on 2022-01-13 14:13 (UTC)

Hi @harpium, do you have a log of the error message? Maybe submit the problem to the official forum to see if someone can help.

harpium commented on 2022-01-12 17:44 (UTC)

Suddenly the interface is just black. I can still access the menus with binds such as ALT + T. Does anyone know how to fix this?

dobedobedo commented on 2021-08-20 12:35 (UTC) (edited on 2021-08-20 12:36 (UTC) by dobedobedo)

Hi all,

I update the executable scripts to change the licence rehostable directory. The original rehostable directory is in /var/tmp, which can sometimes be wiped out. This is suggested by Agisoft support.

This upgrade will deactivate the licence for you to avoid it becomes invalid.

You will need to reactivate the product again after the upgrade. I'll remove this pre-upgrade licence deactivation in the next release.

dobedobedo commented on 2021-08-19 08:34 (UTC)

Thanks, @harpium. Added opencl-amd as an optional dependency.

harpium commented on 2021-08-18 22:51 (UTC) (edited on 2021-08-18 22:56 (UTC) by harpium)

If anyone is having issues with their AMD GPU not showing up on the GPU preferences tab, then install opencl-amd.

dobedobedo commented on 2021-08-18 20:55 (UTC) (edited on 2021-08-20 12:40 (UTC) by dobedobedo)

I encountered an issue the licence becomes invalid and cannot be deactivated. Here's the reply from agisoft support:

Please note that during the license activation of node-locked license an additional so-called "rehostable" directory is created. It is used later to validate the available license and stores the system parameters, that why it is important to deactivate the license before applying any major changes to the system, such as OS upgrade/re-install or hardware components replacement. 
The default location of the "rehostable" directory differs depending on the OS used:
on Windows - C:/ProgramData/Reprise/agisoft/photoscan-pro/
on Linux  -  /var/tmp/agisoft/photoscan-pro/
on macOS - /Library/Application Support/Reprise/agisoft/photoscan-pro/
It is possible to alter the default location by setting up AGISOFT_REHOST_PATH environment variable prior to the license activation. Use only safe location that wouldn't be cleared by any background services, as any modification of the "rehostable" directory contents including its removal will lead to the license invalidation.
During the activation and application utilization, please make sure that current user has access rights to the rehostable directory and folder where from Metashape Pro is started (the license file will be written to that folder).

If you decide to customize the rehsotable id folder location, make sure to do that prior to the license activation (set up env. variable, reboot and then activate Metashape license).

Metashape is using a 3rd party activation system developed by Reprisesoftware (https://reprisesoftware.com/). As far as we are aware, the following changes in hardware configuration would likely affect the activated license: adding/removing hard drive (HDD, SSD), adding/removing RAM modules, adding/removing GPU, replacing network card. Additionally MAC-address changes would affect the license, as well as major OS upgrades.

Therefore we recommend to deactivate Metashape license before any of these operations are applied to the system.

So make sure to deactivate the licence before any major system upgrade and then reactivate it.

To deactivate the licence, use

sudo agisoft-metashape-pro --deactivate

dobedobedo commented on 2021-04-28 16:51 (UTC)

Hi @JeppeX, could you please confirm if installing 'glu' resolves the issue?

JeppeX commented on 2021-04-28 16:36 (UTC)

It seems that metashape depends on "extra/glu" (which is a Mesa OpenGL lib) in order to run. Otherwise running metashape gives: /opt/agisoft/metashape-pro/metashape: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

I think it would be helpful to add this "glu" pkg to dependencies.

pyroclast commented on 2020-11-11 01:59 (UTC)

Thanks @dobedobedo, I ran the simplified version to make the correction:

sudo chmod -R 755 /opt/agisoft/metashape-pro/ /usr/share/licenses/agisoft-metashape-pro/licenses/

dobedobedo commented on 2020-11-11 01:20 (UTC) (edited on 2020-11-11 01:39 (UTC) by dobedobedo)

I updated the post-upgrade script to fix the permission issue. Please update.

pyroclast commented on 2020-11-10 16:41 (UTC)

Having permission issues after upgrade. Output from upgrade had many permission warnings, example of top warning:

warning: directory permissions differ on /opt/agisoft/metashape-pro/
filesystem: 755  package: 700

When I try to run the program:

$ agisoft-metashape-pro 
/usr/bin/agisoft-metashape-pro: line 2: /opt/agisoft/metashape-pro/metashape.sh: Permission denied

Updating permissions to match system allowed the program to run as expected.

dobedobedo commented on 2020-09-08 02:42 (UTC)

Check the forum thread here:
https://www.agisoft.com/forum/index.php?topic=10943.0
There is a workaround for installing external python modules.

dobedobedo commented on 2020-07-31 01:16 (UTC)

Hi @theodore, yes I got the same error message on my Arch WSL. Haven't tried it on my Manjaro machine as I'm away from it at the moment, but the python module installation worked on my another Ubunt 18.04 workstation.
I tried manually compile the pyOpenSSL module into the agisoft python packages directory, but didn't change anything. May need to recompile the python with libssl option. Hope that Agisoft can provide some solutions soon.

theodore commented on 2020-07-30 12:06 (UTC)

Hi @dobedobedo, I've seen this thread on the agisoft forum when I was looking for a solution on my own and I was hoping that it was only ubuntu related since as they say the current workaround was to downgrade the ubuntu instalation. However it seems that apparently it is not. In any case thanks for commenting there.

So I assume that you are also getting the same error when you run the command, right?

dobedobedo commented on 2020-07-30 03:50 (UTC) (edited on 2020-07-30 04:12 (UTC) by dobedobedo)

Hi @theodore, I suspect that the Metashape built-in python doesn't recognise the system openssl implementation. The same thing seems happening on Ubuntu 20.04 according to the forum posts.
I already post the errors on their official forum https://www.agisoft.com/forum/index.php?topic=10943.0 to see if there's a solution for this. You can also add some of your details there.

theodore commented on 2020-07-29 09:32 (UTC) (edited on 2020-07-29 09:41 (UTC) by theodore)

@dobedobedo yes I've used the python in the metashape-pro path not with the --user flag though. In any case I've tried your suggested commands and I am still getting the error regarding the ImportError: cannot import name 'HTTPSHandler'

Actually this is the complete error message:

$ LD_LIBRARY_PATH=/opt/agisoft/metashape-pro/python/lib /opt/agisoft/metashape-pro/python/bin/python3.5 -m pip install --user pillow
Traceback (most recent call last):
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/runpy.py", line 133, in _get_module_details
return _get_module_details(pkg_main_name, error)
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/site-packages/pip/__init__.py", line 16, in <module>
from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/site-packages/pip/vcs/subversion.py", line 9, in <module>
from pip.index import Link
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/site-packages/pip/index.py", line 30, in <module>
from pip.wheel import Wheel, wheel_ext
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/site-packages/pip/wheel.py", line 39, in <module>
from pip._vendor.distlib.scripts import ScriptMaker
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/site-packages/pip/_vendor/distlib/scripts.py", line 14, in <module>
from .compat import sysconfig, detect_encoding, ZipFile
  File "/opt/agisoft/metashape-pro/python/lib/python3.5/site-packages/pip/_vendor/distlib/compat.py", line 66, in <module>
from urllib.request import (urlopen, urlretrieve, Request, url2pathname,
ImportError: cannot import name 'HTTPSHandler'

dobedobedo commented on 2020-07-29 05:21 (UTC) (edited on 2020-07-29 06:15 (UTC) by dobedobedo)

Hi @theodore, did you execute the python which belongs to metashape-pro? The path of metashape-pro python is /opt/agisoft/metashape-pro/python/bin/python3.5. Besides, you need to use --user when executing pip since we would like to avoid messing up the python modules with root permission.
The correct way to install external modules would like run commands like:

/opt/agisoft/metashape-pro/python/bin/python3.5 -m pip install --user python_module_names

If you encounter the error message
error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
then add the path prefix in the command:

LD_LIBRARY_PATH=/opt/agisoft/metashape-pro/python/lib /opt/agisoft/metashape-pro/python/bin/python3.5 -m pip install --user python_module_names

theodore commented on 2020-07-28 12:42 (UTC)

Hi, I am trying to install an external module according to this https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-metashape-professional-package but I am getting the ImportError: cannot import name 'HTTPSHandler' error. Then I've tried to install the openssl098 package (https://aur.archlinux.org/packages/openssl098/), but I am still getting the same error message. Any idea how to solve the issue?

dobedobedo commented on 2019-10-01 15:23 (UTC) (edited on 2020-07-29 05:21 (UTC) by dobedobedo)

Run the following command to activate the product

sudo agisoft-metashape-pro --activate 11111-22222-33333-44444-55555

NOTE: the number after "--activate" is your node-locked license