First time using Python from the Script step. So I’m pretty sure I’m doing something wrong. But not sure what.
Octopus 2019.13.7
We setup a tentacle on Windows Server 2019 (1809) in listening mode. Latest Calamari is on it 5.0.12.
But when we use the Script Step, select Python3 and put ‘print(“Hello world”)’ for the inline script we get the following in deploy logs:
When a script or process writes to error out on Windows 2019 (1809) with .NET 4.7.2 , PowerShell may terminate it immediately without allowing further code execution. This also causes only part of the error output to be shown.. Install .NET 4.8 or later to resolve this problem. More information.
Looking in indexes: https://formsauth-packages.afcorp.afg/pypi/import-pypi/
Collecting pycryptodome
Calamari.exe : ERROR: Could not find a version that satisfies the requirement pycryptodome (from versions: none)
At E:\OctopusStorage\Work\20200527215351-175341-7\Bootstrap.ps1:38 char:1
+ & "${env:TentacleHome}\Calamari\9.0.5\Calamari.exe" run-script -sens ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( ERROR: Could ...versions: none):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
ERROR: No matching distribution found for pycryptodome
Unable to install package pycryptodome using pip.
If you do not have pip you can install pycryptodome using your favorite python package manager.
The remote script failed with exit code 1
The action testing python on a Worker failed
We just put Python 3.8.3 on the server, restarted the tentacle and ran the following via the script console to ensure Python and pip are available:
python --version
pip --version
With the following output from that script console:
When a script or process writes to error out on Windows 2019 (1809) with .NET 4.7.2 , PowerShell may terminate it immediately without allowing further code execution. This also causes only part of the error output to be shown.. Install .NET 4.8 or later to resolve this problem. More information.
Python 3.8.3
pip 19.2.3 from c:\program files (x86)\python38-32\lib\site-packages\pip (python 3.8)
The docs say pip must be installed or that pycryptodome package be installed. But pip is installed and available.
Any ideas on how to resolve that error?