mirror of
https://github.com/VFrontDe-Org/ESXi-Customizer-PS.git
synced 2026-04-25 23:46:02 +03:00
[GH-ISSUE #62] Could not initialize the VMware.ImageBuilder PowerCLI module. Make sure that Python 3.7 is installed and that you have set the path to the Python executable by using Set-PowerCLIConfiguration -PythonPath #45
Labels
No labels
bug
duplicate
duplicate
enhancement
fix in-progress
invalid
need more info
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ESXi-Customizer-PS#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jas0n0ss on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/VFrontDe-Org/ESXi-Customizer-PS/issues/62
when I use set env with
Set-PowerCLIConfiguration -PythonPath 'C:\python\Python37\', it's still not working , any ideas?@mrpressIdent commented on GitHub (Feb 6, 2023):
Set the path on Windows.
Set-PowerCLIConfiguration -PythonPath <python3.7-directory>\python.exe -Scope User
If you want to use ESXi8 you should use python 3.7.9
@mithril52 commented on GitHub (Feb 6, 2023):
I am having the same issue, and the above did not fix it. I have even tried installing 3.7.9, still get the same error
@mrpressIdent commented on GitHub (Feb 6, 2023):
You are sure that you have specified the correct path (incl. phyton.exe) completely? If yes, then restart Powershell once
@mithril52 commented on GitHub (Feb 6, 2023):
Yes. And have restarted powershell multiple times
PS C:\Users\baene\Downloads> C:\Users\baene\AppData\Local\Programs\Python\Python37\python.exe -V
Python 3.7.9
PS C:\Users\baene\Downloads> Set-PowerCLIConfiguration -PythonPath "C:\Users\baene\AppData\Local\Programs\Python\Python37\python.exe" -Scope User
Perform operation?
Performing operation 'Update VMware.PowerCLI configuration.'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
Scope ProxyPolicy DefaultVIServerMode InvalidCertificateAction DisplayDeprecationWarnings WebOperationTimeout
Seconds
Session UseSystemProxy Multiple Unset True 300
User
AllUsers
@mithril52 commented on GitHub (Feb 6, 2023):
Figured out the issue. I did not have pip and the additional packages installed that PowerCLI uses when the ImageBuilder module is used:
https://developer.vmware.com/docs/15315//GUID-9081EBAF-BF85-48B1-82A0-D1C49F3FF1E8.html
@virtualex-itv commented on GitHub (Feb 8, 2023):
@Jas0n0ss - closing this issue with the answer noted above. not an issue with the script but rather not meeting the new requirements to enable the module.
@Jas0n0ss commented on GitHub (Feb 11, 2023):
https://oss.msft.vip/2023/02/10/custom-exsi-iso-with-Additional-driver/