oci-cli icon indicating copy to clipboard operation
oci-cli copied to clipboard

windows 11 script ends with fail

Open schrek1 opened this issue 2 years ago • 0 comments

ran in powershell with admin permissions

powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1'))"

ends with error:

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ValueError: source code string cannot contain null bytes

Current thread 0x00001fb8 (most recent call first):
<no Python frame>
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/
install/install.ps1')) : Executing C:\Users\ondre\Python\python.exe "C:\Users\ondre\AppData\Local\Temp\tmp6DC.tmp" retu
rned a non-zero exit code.
At line:454 char:9
+         Write-Error "Executing $PythonExecutable $ArgumentList return ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException

schrek1 avatar Sep 22 '22 21:09 schrek1