forked from vmware/photon-os-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
dcasota edited this page Dec 6, 2021
·
4 revisions
Welcome to the photon-os-installer wiki!
How to build photon-os-installer on Photon 4 revision 1
tdnf install -y python3 python3-setuptools python3-pyinstaller
tdnf install -y git python3-devel python3-curses build-essential
git clone https://github.com/dcasota/photon-os-installer.git
cd photon-os-installer
pyinstaller --onefile photon-installer.spec
Actual issue which doesn't occur with the latest original source file.
root@ph4rev1 [ ~/photon-os-installer/dist ]# ./photon-installer
Traceback (most recent call last):
File "photon-installer.py", line 30, in <module>
File "/usr/lib/python3.9/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.__dict__)
File "installer.py", line 20, in <module>
import curses
ModuleNotFoundError: No module named 'curses'
[3403] Failed to execute script photon-installer
root@ph4rev1
workaround: simply build first the original package and then the modified one.
cd /
rm -r photon-os-installer
git clone https://github.com/vmware/photon-os-installer.git
cd photon-os-installer
pyinstaller --onefile photon-installer.spec
cd /
rm -r photon-os-installer
git clone https://github.com/dcasota/photon-os-installer.git
cd photon-os-installer
pyinstaller --onefile photon-installer.spec