Skip to content

Improve Python dependency checks and logging#276

Merged
TiTidom-RC merged 2 commits into
mainfrom
beta
Jun 13, 2026
Merged

Improve Python dependency checks and logging#276
TiTidom-RC merged 2 commits into
mainfrom
beta

Conversation

@TiTidom-RC

Copy link
Copy Markdown
Owner

This pull request improves the dependency checking logic in the dependancy_info method of ttscast.class.php, focusing on clearer logging and more robust diagnostics for missing Python dependencies. The updates enhance debugging and provide more detailed feedback when issues are detected.

Dependency checking and logging improvements:

  • Replaced generic warning logs with detailed debug logs that specify which system or Python dependencies are missing, including the path checked for the Python virtual environment and the actual/expected counts of Python packages found.
  • Added logging of the regex used for dependency matching and the full output of pip freeze to aid in debugging missing dependencies.
  • Changed the log level from warning/info to debug for all dependency-related logs, making the output more consistent and less noisy in production environments.

Enhance dependency verification and add detailed debug logs for ttscast.

Replaced generic warning/info messages with structured debug entries, added explicit checks and messages for missing system packages and missing Python venv executable, and implemented counting of installed Python packages using configured regex and expected count (pythonDepString / pythonDepNum). When dependencies are missing, the code now logs the found vs expected count, the regex used, and the full pip freeze output (compressed) to aid troubleshooting. Overall behavior for setting the dependency state (ok/nok/in_progress) is preserved but with richer diagnostics.
Improve Python dependency checks and logging
@TiTidom-RC TiTidom-RC merged commit f79f16d into main Jun 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant