Hi, we’re starting to implement running Python scripts in process steps. We’re trying to run the following simple python script on a deployment target…
import os
print("PATH: {0}".format(os.environ['PATH']))
We are getting the following error from the console.
Variable run condition was evaluated as true, so “Run Python” will be run.
March 24th 2022 08:19:42Info
Requirement already satisfied: pycryptodome in c:\users\myUserName\appdata\roaming\python\python37\site-packages (3.14.1)
March 24th 2022 08:19:42Error
Traceback (most recent call last):
March 24th 2022 08:19:42Error
File “D:\Octopus\Tentacle-DMZ\Work\20220324151936-26118-4\Bootstrap.067-4782-8e43-3d794ea5a441.Script.py”, line 2, in
March 24th 2022 08:19:42Error
configuration = run_path(“D:\Octopus\Tentacle-DMZ\Work\20220324151936-26118-4\Configure.2ab-4590-a4b4-2a33bf32ea7b.py”)
March 24th 2022 08:19:42Error
File “C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py”, line 263, in run_path
March 24th 2022 08:19:42Error
pkg_name=pkg_name, script_name=fname)
March 24th 2022 08:19:42Error
File “C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py”, line 96, in _run_module_code
March 24th 2022 08:19:42Error
mod_name, mod_spec, pkg_name, script_name)
March 24th 2022 08:19:42Error
File “C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py”, line 85, in run_code
March 24th 2022 08:19:42Error
exec(code, run_globals)
March 24th 2022 08:19:42Error
File “D:\Octopus\Tentacle-DMZ\Work\20220324151936-26118-4\Configure.2ab-4590-a4b4-2a33bf32ea7b.py”, line 5, in
March 24th 2022 08:19:42Error
from Crypto.Cipher import AES
March 24th 2022 08:19:42Error
File "C:\Users\myUserName\AppData\Roaming\Python\Python37\site-packages\Crypto\Cipher_init.py", line 27, in
March 24th 2022 08:19:42Error
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
March 24th 2022 08:19:42Error
File “C:\Users\myUserName\AppData\Roaming\Python\Python37\site-packages\Crypto\Cipher_mode_ecb.py”, line 47, in
March 24th 2022 08:19:42Error
“”"
March 24th 2022 08:19:42Error
File “C:\Users\myUserName\AppData\Roaming\Python\Python37\site-packages\Crypto\Util_raw_api.py”, line 309, in load_pycryptodome_raw_lib
March 24th 2022 08:19:42Error
raise OSError(“Cannot load native module ‘%s’: %s” % (name, ", ".join(attempts)))
March 24th 2022 08:19:42Error
OSError: Cannot load native module ‘Crypto.Cipher._raw_ecb’: Not found ‘_raw_ecb.cp37-win_amd64.pyd’, Cannot load ‘_raw_ecb.pyd’: cannot load library ‘C:\Users\myUserName\AppData\Roaming\Python\Python37\site-packages\Crypto\Util…\Cipher_raw_ecb.pyd’: error 0xc1
March 24th 2022 08:19:42Fatal
The remote script failed with exit code 1
March 24th 2022 08:19:42Fatal
The action Run Python on MaPIT AGS Stage failed
Any ideas?
Thanks,
Robert