Commit ddc77bc
authored
fix(motion-graphics): correct FileTools import path + constructor (v0.2.25) (#28)
Post-merge fixes for #27 caught via live end-to-end run of motion_graphics_team:
- agent.py / team.py: import FileTools from praisonaiagents.tools.file_tools
(not praisonaiagents.tools). FileTools is not exported via the tools
package __getattr__, so 'from praisonaiagents.tools import FileTools'
raises ImportError in production and causes motion_graphics_team() and
create_motion_graphics_agent() to both fail with the generic
'praisonaiagents not available' ImportError.
- agent.py: drop the base_dir kwarg when instantiating FileTools — the
class takes no constructor args (methods are bound directly).
- team.py: also catch AttributeError alongside ImportError so lazy
attribute failures fall back cleanly to None stubs.
- pyproject.toml: bump version 0.2.24 -> 0.2.25
Unit tests continue to pass because they mock out praisonaiagents. The
bug only surfaces in live runs. Follow-up: add one non-mocked smoke test
that actually instantiates motion_graphics_team().1 parent 6d0d510 commit ddc77bc
File tree
3 files changed
+11
-7
lines changed- praisonai_tools/video/motion_graphics
3 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments