Working setup
Folder structure
→ Folder One
- tdOne.toe
- TDPyEnvManagerContext.yaml
- requirements.txt
→ globscripts
→ PythonFolder
yaml contents
active: true
mode: Python vEnv
envName: .venv
installPath: .
pythonVersion: '3.11.10'
autoSetup: true
autoSetupReqs:
- requirements.txt
extraPaths:
- C:\envTest\globscripts
Behaviour
On toe launch, the environment gets correctly creates in FolderOne, and pandas gets correctly installed as it’s the only library listed in requirements.txt. Moreover, printing “sys.path” from the Textport correctly lists both the extraPath and the env:
['C:\\envTest\\globscripts', 'C:\\envTest\\FolderOne\\.venv\\Lib\\site-packages', 'C:\\Program Files\\Derivative\\TouchDesigner.2025.32280\\bin\\python311.zip', 'C:\\Program Files\\Derivative\\TouchDesigner.2025.32280\\bin\\DLLs', 'C:\\Program Files\\Derivative\\TouchDesigner.2025.32280\\bin\\Lib', 'C:\\Program Files\\Derivative\\TouchDesigner.2025.32280\\bin', 'C:\\Program Files\\Derivative\\TouchDesigner.2025.32280\\bin\\Lib\\site-packages']
Broken setup
Folder structure
→ Folder One
- tdOne.toe
- TDPyEnvManagerContext.yaml
→ globscripts
→ PythonFolder
yaml contents
active: true
mode: Python vEnv
envName: .venv
installPath: ../PythonFolder
pythonVersion: '3.11.10'
autoSetup: true
autoSetupReqs:
- ../PythonFolder/requirements.txt
extraPaths:
- C:\envTest\globscripts
Behaviour
On toe launch, the environment gets wrongly created inside FolderOne instead of PythonFolder, but the requirements.txt file is found and thus the env is created correctly in the wrong place. The yaml file is overwritten with the installPath substituted to “.”.
Variants
- Using the absolute path instead (C:\envTest\PythonFolder) creates the environement in the correct location but fails to install the libraries, and throws the following error on the Textport:
2026-06-04 14:52:34,206 - ERROR - TDAppLogger.TDPyEnvManagerHelper - Python executable not found for requirements install: C:\envTest\FolderOne\.venv\Scripts\python.exe
2026-06-04 14:52:34,207 - ERROR - TDAppLogger.TDPyEnvManagerHelper - Python executable not found at C:\envTest\FolderOne\.venv\Scripts\python.exe.
2026-06-04 14:52:34,207 - ERROR - TDAppLogger.TDPyEnvManagerHelper - Environment C:\envTest\FolderOne\.venv could not be linked. Context is: {'active': False, 'mode': 'Python vEnv', 'envName': '.venv', 'installPath': 'C:\\envTest\\PythonFolder', 'envPath': 'C:\\envTest\\FolderOne\\.venv', 'executablePath': 'C:\\envTest\\FolderOne\\.venv\\Scripts\\python.exe', 'osPath': [], 'sysPath': [], 'pythonVersion': '3.11.10', 'autoSetup': True, 'autoSetupReqs': ['..\\PythonFolder\\requirements.txt'], 'extraPaths': ['C:\\envTest\\globscripts']}
2026-06-04 14:52:34,208 - ERROR - TDAppLogger.TDPyEnvManagerHelper - Python executable not found at C:\envTest\FolderOne\.venv\Scripts\python.exe.
2026-06-04 14:52:34,208 - ERROR - TDAppLogger.TDPyEnvManagerHelper - Environment C:\envTest\FolderOne\.venv could not be linked. Context is: {'active': False, 'mode': 'Python vEnv', 'envName': '.venv', 'installPath': 'C:\\envTest\\PythonFolder', 'envPath': 'C:\\envTest\\FolderOne\\.venv', 'executablePath': 'C:\\envTest\\FolderOne\\.venv\\Scripts\\python.exe', 'osPath': [], 'sysPath': [], 'pythonVersion': '3.11.10', 'autoSetup': True, 'autoSetupReqs': ['..\\PythonFolder\\requirements.txt'], 'extraPaths': ['C:\\envTest\\globscripts']}
- I tried making also the requirements path absolute, with the same outcome.
- I tried making the envName a full path, but that overwrites the yaml completey to make the path local again