Open CAD97 opened 3 years ago
Going to use this PR to dump everything I run into so we can map a clearer path through setup.
Initial state: installed latest Python, py -m pip install --upgrade pip
, pip install wheel
.
I cloned the repo as a subfolder in our project (@/TGP2BuildScripts/Build.py
).
PS D:\p4\TGP2\Arcade-Racer\PigmentPenguins> py .\TGP2BuildScripts\Build.py -h
Traceback (most recent call last):
File "D:\p4\TGP2\Arcade-Racer\PigmentPenguins\TGP2BuildScripts\Build.py", line 4, in <module>
from Scripts.UpdateVersionNumber import update_version_number
File "D:\p4\TGP2\Arcade-Racer\PigmentPenguins\TGP2BuildScripts\Scripts\UpdateVersionNumber.py", line 5, in <module>
from P4 import P4, P4Exception
ModuleNotFoundError: No module named 'P4'
Alright, so who needs to provide the P4 module?
Found the official p4python (which is not pip install p4
; beware!). While not super easy to figure out, install instructions are provided in the system requirements file:
Installation via pip is provided as p4python
. However, I'm getting a big wall of red text when trying to install...
PS D:\p4\TGP2\Arcade-Racer\PigmentPenguins> pip install p4python
Collecting p4python
Using cached p4python-2020.1.2056111.tar.gz (78 kB)
Building wheels for collected packages: p4python
Building wheel for p4python (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\christopher durham\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Christopher Durham\\AppData\\Local\\Temp\\pip-install-50zt1l8e\\p4python_e45ccf63483841d180c07b752daf7c4b\\setup.py'"'"'; __file__='"'"'C:\\Users\\Christopher Durham\\AppData\\Local\\Temp\\pip-install-50zt1l8e\\p4python_e45ccf63483841d180c07b752daf7c4b\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Christopher Durham\AppData\Local\Temp\pip-wheel-cnvnv2wc'
cwd: C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\
Complete output (39 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying P4.py -> build\lib.win-amd64-3.9
running build_ext
***********************************************
** Cannot build P4Python without SSL support **
***********************************************
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\setup.py", line 475, in <module>
do_setup()
File "C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\setup.py", line 425, in do_setup
setup(name=NAME,
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\setup.py", line 292, in run
raise Exception("Parameter --ssl is needed")
Exception: Parameter --ssl is needed
----------------------------------------
ERROR: Failed building wheel for p4python
Running setup.py clean for p4python
Failed to build p4python
Installing collected packages: p4python
Running setup.py install for p4python ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\christopher durham\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Christopher Durham\\AppData\\Local\\Temp\\pip-install-50zt1l8e\\p4python_e45ccf63483841d180c07b752daf7c4b\\setup.py'"'"'; __file__='"'"'C:\\Users\\Christopher Durham\\AppData\\Local\\Temp\\pip-install-50zt1l8e\\p4python_e45ccf63483841d180c07b752daf7c4b\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Christopher Durham\AppData\Local\Temp\pip-record-_ohgnd75\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\christopher durham\appdata\local\programs\python\python39\Include\p4python'
cwd: C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\
Complete output (41 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying P4.py -> build\lib.win-amd64-3.9
running build_ext
***********************************************
** Cannot build P4Python without SSL support **
***********************************************
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\setup.py", line 475, in <module>
do_setup()
File "C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\setup.py", line 425, in do_setup
setup(name=NAME,
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\command\install.py", line 546, in run
self.run_command('build')
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\christopher durham\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Christopher Durham\AppData\Local\Temp\pip-install-50zt1l8e\p4python_e45ccf63483841d180c07b752daf7c4b\setup.py", line 292, in run
raise Exception("Parameter --ssl is needed")
Exception: Parameter --ssl is needed
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\christopher durham\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Christopher Durham\\AppData\\Local\\Temp\\pip-install-50zt1l8e\\p4python_e45ccf63483841d180c07b752daf7c4b\\setup.py'"'"'; __file__='"'"'C:\\Users\\Christopher Durham\\AppData\\Local\\Temp\\pip-install-50zt1l8e\\p4python_e45ccf63483841d180c07b752daf7c4b\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Christopher Durham\AppData\Local\Temp\pip-record-_ohgnd75\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\christopher durham\appdata\local\programs\python\python39\Include\p4python' Check the logs for full command output.
It looks like I'm missing SSL support?
Here we go, an installer. This is not linked from the "Installing P4Python" page in a way that makes it easy to find.
And... installing that (via MSI) did not improve the situation. The P4
module is still missing.
OK: installer wants Python 3.8, I had 3.9, and that was the issue. Pip install seems to be broken because of something different about how SSL is handled? Will add this to draft README later today and start laying rails.
OK, I've documented my current understanding of setup and config.ini
. Running the build script to test (and using Notepad++ to tail -f
the log file), I'm hung on waiting for the p4 sync -f
with no feedback. I am using network out the wazoo, so it's doing something, but I have no feedback.
Oh... I told it to sync -f
the entire TGP2 workspace (including the flash hacks)... whoops
I'm getting an error on lighting build, specifying no maps to be built. It looks like we're trying to use None
as a file path. Manually passing skip lighting for now, since I don't need to build lighting for no maps anyway.
Except for the lighting build issue, this should now be a full map to getting the build scripts running. I'm talking to steam, but the depot upload is failing; I believe this is a failure due to the upload scripts and not due to our scripts.
Working on getting the scripts working. Let's make it easier for the next cohort!