I am beginning to test methods of automating python installs, and want to add this to a .bat anyone can before first run. Was excited to read that there is already a batch example provided in the Samples directory!
When using this batch directly and when simplifying it to the following:
set TD_INSTALL_PATH=C:\Program Files\Derivative\TouchDesigner.2025.31760
"%TD_INSTALL_PATH%\bin\python.exe" "%TD_INSTALL_PATH%\bin\Lib\tdutils\TDPyEnvManagerHelper.py" --clean --mode "Py vEnv" --pythonVersion "3.11"
I see the following error:
C:\Users\{USERNAME}\OneDrive\Desktop\TD Test 20251128>set TD_INSTALL_PATH=C:\Program Files\Derivative\TouchDesigner.2025.31760
C:\Users\{USERNAME}\OneDrive\Desktop\TD Test 20251128>"C:\Program Files\Derivative\TouchDesigner.2025.31760\bin\python.exe" "C:\Program Files\Derivative\TouchDesigner.2025.31760\bin\Lib\tdutils\TDPyEnvManagerHelper.py" --clean --mode "Py vEnv" --pythonVersion "3.11"
Traceback (most recent call last):
File "C:\Program Files\Derivative\TouchDesigner.2025.31760\bin\Lib\tdutils\TDPyEnvManagerHelper.py", line 1533, in <module>
main(args)
File "C:\Program Files\Derivative\TouchDesigner.2025.31760\bin\Lib\tdutils\TDPyEnvManagerHelper.py", line 1430, in main
helper.logger.debug("Starting TDPyEnvManagerHelper...")
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'debug'