Forum

Author Topic: Pyarmor - script obfuscation  (Read 3595 times)

mcstieg

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Pyarmor - script obfuscation
« on: April 27, 2024, 02:51:16 PM »
Hello everybody,

i was loading obfuscated scripts into metashape for years until the obf.-software "pyarmor" did an update.
Now, when loading the script, Metashape console says:

Traceback (most recent call last):
2024-04-27 13:44:52   File "C:/Users/XXXXX/AppData/Local/Agisoft/Metashape Pro/scripts/XXXXX.py", line 3, in <module>
2024-04-27 13:44:52     from pyarmor_runtime_00XXXX import __pyarmor__
2024-04-27 13:44:52   File "C:\Users\XXXXX\AppData\Local\Agisoft\Metashape Pro\scripts\pyarmor_runtime_00XXXX\__init__.py", line 2, in <module>
2024-04-27 13:44:52     from .pyarmor_runtime import __pyarmor__
2024-04-27 13:44:52 ImportError: DLL load failed while importing pyarmor_runtime: Das angegebene Modul wurde nicht gefunden. (module not found)


What is the correct version of python in Metashape? 3.8? 3.8.10? ...

Please help  :)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15320
    • View Profile
Re: Pyarmor - script obfuscation
« Reply #1 on: April 30, 2024, 05:23:25 PM »
Hello mcstieg,

The latest version of Metashape (2.1.1) is using Python 3.9.13 version.

If pyarmor is the only external module that you are using, you can try uninstalling Metashape Pro, clearing the installation folder completely (you can backup geoids and autostart scripts, if any are present), then re-install Metashape and re-install pyarmor module.
Best regards,
Alexey Pasumansky,
Agisoft LLC