Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

- Fixed issue with `get_console()` function returning `None` if Pipelex is not initialized. Now always defaults to `stderr` if not set.

Louis Choquel0c78a1b91d2f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 47d1c29a6..9464d199c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog
+## [v0.15.7] - 2025-11-18
+
+### Fixed
+ - Fixed issue with `get_console()` function returning `None` if Pipelex is not initialized. Now always defaults to `stderr` if not set.
+
## [v0.15.6] - 2025-11-18
### Contributors
diff --git a/pipelex/hub.py b/pipelex/hub.py
index 81b380446..95678c784 100644
--- a/pipelex/hub.py
+++ b/pipelex/hub.py
@@ -210,10 +210,10 @@ class PipelexHub:
return self._config
def get_console(self) -> Console:
- if self._console is None:
- msg = "Console is not set. You must initialize Pipelex first."
- raise RuntimeError(msg)
- return self._console
+ if self._console:
+ return self._console
+ else:
+ return Console(stderr=True)
def get_required_secrets_provider(self) -> SecretsProviderAbstract:
if self._secrets_provider is None:
@@ -467,6 +467,6 @@ def get_native_concept(native_concept: NativeConceptCode) -> Concept:
def get_console() -> Console:
pipelex_hub = PipelexHub.get_optional_instance()
if pipelex_hub:
- return get_pipelex_hub().get_console()
+ return pipelex_hub.get_console()
else:
return Console(stderr=True)
diff --git a/pyproject.toml b/pyproject.toml
index 45c5f1af1..68a5e6533 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "pipelex"
-version = "0.15.6"
+version = "0.15.7"
description = "The open standard for repeatable AI workflows. Write business logic, not API calls."
authors = [{ name = "Evotis S.A.S.", email = "[email protected]" }]
maintainers = [{ name = "Pipelex staff", email = "[email protected]" }]
diff --git a/uv.lock b/uv.lock
index 6f66a19c0..699db5841 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1661,7 +1661,7 @@ wheels = [
[[package]]
name = "pipelex"
-version = "0.15.6"
+version = "0.15.7"
source = { editable = "." }
dependencies = [
{ name = "aiofiles" },