Skip to content

Commit 60dfd03

Browse files
committed
fix: resolve KokoroProvider installation test error
- Fixed "'PosixPath' object has no attribute 'get'" error - KokoroProvider now receives proper config dictionary - Installation test checks if models are available - Bump version to 0.1.3
1 parent 3be44db commit 60dfd03

4 files changed

Lines changed: 22 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.3] - 2025-08-03
9+
10+
### 🐛 Fixed
11+
12+
- **Installation test error**: Fixed "'PosixPath' object has no attribute 'get'" error during Kokoro setup
13+
- KokoroProvider now receives proper config dictionary instead of bare Path object
14+
- Installation test properly checks if models are available
15+
816
## [0.1.2] - 2025-08-03
917

1018
### 🐛 Fixed
@@ -159,6 +167,7 @@ Configuration is stored in `~/.claude/ccnotify/config.json`:
159167

160168
**Migration**: First-time installation - no migration needed.
161169

170+
[0.1.3]: https://github.com/Helmi/ccnotify/releases/tag/v0.1.3
162171
[0.1.2]: https://github.com/Helmi/ccnotify/releases/tag/v0.1.2
163172
[0.1.1]: https://github.com/Helmi/ccnotify/releases/tag/v0.1.1
164173
[0.1.0]: https://github.com/Helmi/ccnotify/releases/tag/v0.1.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ccnotify"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Intelligent notification system for Claude Code with audio feedback"
55
authors = [
66
{name = "Frank Helmschrott", email = "frank@helmschrott.de"}

src/ccnotify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
CCNotify - Intelligent notification system for Claude Code with audio feedback
33
"""
44

5-
__version__ = "0.1.2"
5+
__version__ = "0.1.3"
66
__author__ = "Helmi"
77
__license__ = "MIT"
88

src/ccnotify/setup.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,17 @@ def setup_kokoro(force_download: bool = False) -> bool:
164164
print("\n🧪 Testing installation...")
165165
try:
166166
from .tts.kokoro import KokoroProvider
167-
provider = KokoroProvider(models_dir)
168-
print("✅ Kokoro TTS installation verified!")
167+
# Create proper config for KokoroProvider
168+
test_config = {
169+
"models_dir": str(models_dir),
170+
"voice": "af_sarah",
171+
"speed": 1.0
172+
}
173+
provider = KokoroProvider(test_config)
174+
if provider.is_available():
175+
print("✅ Kokoro TTS installation verified!")
176+
else:
177+
print("⚠️ Kokoro TTS installed but models not available")
169178
except ImportError:
170179
print("⚠️ Kokoro TTS installed, but ccnotify.tts module not found")
171180
print(" Run this after implementing the TTS provider system")

0 commit comments

Comments
 (0)